필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Loading a gui in a new state

조회 수: 1 (최근 30일)
Iman Alsharkawi
Iman Alsharkawi 2011년 10월 5일
마감: MATLAB Answer Bot 2021년 8월 20일
I have a question about saving data and then reloading it into an updated gui. I've saved a gui and I'd like to reload it into the newer version of the gui that has more menu options, etc. I realize that what I have below just saves and loads my file in it's current state, but I'd like to be able to keep the data I need and load it into the new gui.
switch gcbo
case handles.file_menu_load
[fn working_directory] = uigetfile('*.mat','Select Saved File');
switch fn
case 0
switch isempty(get(handles.xls_file_box, 'string'))
case 1
set(handles.xls_file_box,'string','')
otherwise
set(handles.xls_file_box,'string',...
get(handles.xls_file_box, 'string'))
end
otherwise
B3D_close('bypass')
handles.B3D_fig = hgload(fn);
end
case handles.file_menu_save
N = inputdlg('Enter Name of Save File','FileName');
hgsave(handles.B3D_fig,[N{1},'.mat'],'all')
end
Thanks!

답변 (0개)

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by