How to add Simulink icon to our own GUI.

Hi, I am preparing a GUI, in which i would like to add Simulink tool to the Tool bar existing in the GUI. I want to open a new simulink model by a click. I want to open a untitled simulink model, with my click on that icon, as we generally do in the Simulink Library Browser.
Please help me

 Akzeptierte Antwort

TAB
TAB am 23 Jan. 2012

0 Stimmen

To create & open a new 'untitled' simulink model, use below command in pushbutton callback function
open_system(new_system);

Weitere Antworten (1)

Christophe
Christophe am 23 Jan. 2012

0 Stimmen

Hello,
Create a pushbutton associated with a Callback function.
In the Callback, use the "simulink" command, it will call Simulink when clicking on the button.

2 Kommentare

Sriharsha
Sriharsha am 23 Jan. 2012
What if i want to open an untitled simulink model from GUI.
Please tell me
Christophe
Christophe am 23 Jan. 2012
Try this command :
open_system('untitled')

Melden Sie sich an, um zu kommentieren.

Kategorien

Tags

Gefragt:

am 23 Jan. 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by