I would like to create an array of structure, each one of them will have 4 fields that will be an array of unspecified length.
my_struct_data.field1=a;
my_struct_data.field2=b;
my_struct_data.field3=c;
my_struct_data.field4=d;
I am planning, in fact, to insert into this array the data that will be loaded already in the struct format.
for j:1:N_data
my_struct_data=load([my_file_name '_' j]);
my_array_list(j)=my_struct_data;
end
What is the best way to preallocate my array of structure data?
Thank you in advance