I want to create a structure where in first level will have the variable names for eg:- a
>> a=struct()
a =
struct with no fields.
>> for i=1:30
a.i=rand(3);
end
>> a
a =
i: [3x3 double]
a.i
ans =
0.3477 0.2621 0.2428
0.1500 0.0445 0.4424
0.5861 0.7549 0.6878
But what I want to create is a structure where 'a' is a struct contains 30 fields where a.1 ; a.2 ;a.3; each give a random matrix which was previously assigned.
I would also like to do this same thing but for 'i' Strings and not just numbers. For example a video is read and some particular data from every frame is stored in a struct with the variable name of the frame number.
