how to save data from gui handles?

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!!!

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 10월 15일

0 개 추천

a= get(handles.SliderCareChild,'Value');
handles.ValueCareChild(end+1,1)=a
save('filename','a')

댓글 수: 2

ZHE
ZHE 2013년 10월 15일
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?
a=handles.ValueCareChild
save('filename','a')

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

질문:

ZHE
2013년 10월 15일

댓글:

2013년 10월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by