how to save data from gui handles?

2 views (last 30 days)
ZHE
ZHE on 15 Oct 2013
Commented: Azzi Abdelmalek on 15 Oct 2013
I have a function with in a whole gui function: function Save20_Callback(hObject, eventdata, handles)
handles.ValueCareChild(end+1,1)= get(handles.SliderCareChild,'Value');
guidata(hObject,handles)
How can I save the data in handles.ValueCareChild to a .mat file or .xlsx? save() and xlswrite() would not work.
Thank you so much!!!

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 15 Oct 2013
a= get(handles.SliderCareChild,'Value');
handles.ValueCareChild(end+1,1)=a
save('filename','a')
  2 Comments
ZHE
ZHE on 15 Oct 2013
Thanks for your answer.
What if I would like to save the all the values in handles.ValueCareChild within a "finish" button's CallBack function?
Azzi Abdelmalek
Azzi Abdelmalek on 15 Oct 2013
a=handles.ValueCareChild
save('filename','a')

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!