Aeroing
Aerospace
- Apr 29, 2003
- 8
Hi!
I have made a GUI with several edit text boxes where you can enter data. When you the Pushbutton a function calculates some stuff with this data and puts the result in a static text box with:
set(handles.statictext,'String',result)
Additionally you can save the figure with the data you entered.
Now I want to make an option of opening the saved figure using the menu of this GUI. This works, but if I want to calculate the data again (push the pushbutton) it does not work. The result can't be put in the static text box. The error displayed is:
error using set
Invalid handle
This means the complete handle structure is not available.
The open_callback is:
function open_Callback.....
[filename, pathname]=uigetfile('*.fig','Open')
File = fullfile(filename,pathname);
open(File)
I have tried this out, but it does not work:
function open_Callback.....
[filename, pathname]=uigetfile('*.fig','Open')
File = fullfile(filename,pathname);
open(File)
handles = guihandles
Thanks for your help.
Bye
I have made a GUI with several edit text boxes where you can enter data. When you the Pushbutton a function calculates some stuff with this data and puts the result in a static text box with:
set(handles.statictext,'String',result)
Additionally you can save the figure with the data you entered.
Now I want to make an option of opening the saved figure using the menu of this GUI. This works, but if I want to calculate the data again (push the pushbutton) it does not work. The result can't be put in the static text box. The error displayed is:
error using set
Invalid handle
This means the complete handle structure is not available.
The open_callback is:
function open_Callback.....
[filename, pathname]=uigetfile('*.fig','Open')
File = fullfile(filename,pathname);
open(File)
I have tried this out, but it does not work:
function open_Callback.....
[filename, pathname]=uigetfile('*.fig','Open')
File = fullfile(filename,pathname);
open(File)
handles = guihandles
Thanks for your help.
Bye