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

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

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?

Answer by Walter Roberson
on 26 Mar 2013

Accepted answer

filerequest = 'help.fig'; openfig(filerequest)

Show 2 older 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()

## 0 Comments