How to add Simulink icon to our own GUI.

조회 수: 1 (최근 30일)
Sriharsha
Sriharsha 2012년 1월 23일
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

채택된 답변

TAB
TAB 2012년 1월 23일
To create & open a new 'untitled' simulink model, use below command in pushbutton callback function
open_system(new_system);

추가 답변 (1개)

Christophe
Christophe 2012년 1월 23일
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
Sriharsha
Sriharsha 2012년 1월 23일
What if i want to open an untitled simulink model from GUI.
Please tell me
Christophe
Christophe 2012년 1월 23일
Try this command :
open_system('untitled')

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Model, Block, and Port Callbacks에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by