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

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

Visual Basic and Matlab

Asked by Ivan on 5 Sep 2011

hi,

I'm doing a GUI with Visual Basic 6. It does this through the shell

Call Ejecutar_shell("C:\Program Files\MATLAB\R2010b\bin\matlab -r")

Someone can help me because I want to call a matlab GUIDE done in some file or *. mdl

Thank very much for the info

0 Comments

Ivan

Products

No products are associated with this question.

2 Answers

Answer by Fangjun Jiang on 5 Sep 2011
Accepted answer

If you have the MATLAB GUIDE application done, it should have some files for it, such as MyGui.fig, MyGui.m, make sure they are in your MATLAB path.

Do the following will automatically run MyGui after MATLAB starts.

Call Ejecutar_shell("C:\Program Files\MATLAB\R2010b\bin\matlab -r MyGui")

0 Comments

Fangjun Jiang
Answer by Ivan on 6 Sep 2011

hi, thanks for the reply...

works with a brief adjustment to place all files in the same folder...

thanks.

0 Comments

Ivan

Contact us