This question is more conceptual on how to progress with code.
In MATLAB the struct function allows for people to make an "object"-like entity called a struct and then to add extra layers or dimensions
call the structname(n+1).fieldname=new_input_field_value; and then that adds a whole other layer.
The problem is though- that maybe people could add a value that is not intended.
What I Have: For my struct template
table= struct("filename", " ", "F1", 0, "F2", 0, "F3", 0);
I want to continually add filenames, and the values for F1 --> F3. Filenames will be called from an existing folder. And F1 and F3 are calculated using DSP calculations, and will be some sort of number data-type.
For my purposes, I will only add in integer or float values for F1-->F3.
But in manual testing, you can add in anything for any of the fields, strings, numbers --- everything is valid. <-- what I want to avoid
name(i).fieldsyntax. You should start here.tableobject, where each column can have a specific type. The syntax is a little different, and indexing is a little slower, but it might do what you need.