Creating structure array and store it in mat file!
19 views (last 30 days)
Show older comments
Mansoor ahmadi on 20 Jan 2015
Edited: Mansoor ahmadi on 25 Jan 2015
I am working in signature recognition system my final project, I have many variable and I want to store it in structure array then I save the structure array in a mat file. but there is a problem, when I store data in the 1st index then 2nd then third... so on when I want to access the data from the 1st index it give me an empty variable. my data is (image,name of person, lastname, ID, complex number,double number) and I get all these data from interface. I have put the below code in push button_callback:
lastname= get(handles.edit3, 'string');
id= get(handles.edit4, 'string');
A = handles.amplitud;
Phi = handles.phi;
array(1).name = name;
array(1).lastname = lastname;
array(1).amplitud = A;
array(1).phi = Phi;
array(1).ID = id;
when I want to get the 1st index data I write like this:
but I get something like this:
I can just access the last index data.
it is very difficult problem for me. if some one know answer me.
Ilham Hardy on 20 Jan 2015
Perhaps you define the structure incorrect,
Find more on String Parsing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!