필터 지우기
필터 지우기

How to save data from created guide?

조회 수: 1 (최근 30일)
Radoslav Vandzura
Radoslav Vandzura 2015년 11월 13일
답변: Adam 2015년 11월 13일
Hello All,
I need plot data from mixed *.xlsx file. Before it, I want to save data. I do application in GUIDE and I need always to have access to data. How should I save data? I tried to use xlswrite...but it doesnt work....Could you help me please?

채택된 답변

Adam
Adam 2015년 11월 13일
What do you mean by 'always have access to it'? Do you mean actually 'always' or just for the duration of the GUI being open.
If you mean always then I would assume xlswrite is the correct approach if your data is from a .xlsx file. I have never used that personally though as I always save data from Matlab to a .mat file using
save( filename, 'variable1', 'variable2', etc)
If you mean you want the data for the duration of the GUI then attach it to the handles struct as e.g
handles.data = ...
guidata( hObject, handles );
Then in any other callback of the GUI you can just access it as
handles.data

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by