MATLAB Answers

Marc
0

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

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

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


Join the 15-year community celebration.

Play games and win prizes!

Learn more
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!