Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

Loading a gui in a new state

1 view (last 30 days)
Iman Alsharkawi
Iman Alsharkawi on 5 Oct 2011
Closed: MATLAB Answer Bot on 20 Aug 2021
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!

Answers (0)

This question is closed.

Products

Community Treasure Hunt

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

Start Hunting!