Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Can you use openfig to open a variable

Asked by Marc on 26 Mar 2013

I want to use openfig to open a gui but if filerequest = help.fig open the help file if filerequest = submit.fig open submit.fig.

Is that possible?

0 Comments

Marc

Tags

Products

1 Answer

Answer by Walter Roberson on 26 Mar 2013
Accepted answer
filerequest = 'help.fig';
openfig(filerequest)

5 Comments

Marc on 2 Apr 2013

so the openfig would need to be written opengig(global DEnknown)? Thanks again for your help

Walter Roberson on 2 Apr 2013

No, your routine for pushbutton1_Callback would need

global DEknown

added before it uses openfig()

Marc on 3 Apr 2013

Thanks very much it's working now

Walter Roberson

Contact us