I am trying to work with structures in matlab. I have a code which looks like this :
for i=1:10
a(i).p=some value;
a(i).q=some other value
end
I saved it to a mat file, but it didn't seem successful. Can anyone tell me, how do I save and load this structure to a file/from a file and read a particular type of data? for example, how can I read the field a(i).q
after loading the structure?
Thanks