Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a GUI figure from a GUI

Status
Not open for further replies.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor