필터 지우기
필터 지우기

make run a script programme by a simulink bloc's

조회 수: 1 (최근 30일)
Ahmed BOULMANE
Ahmed BOULMANE 2015년 6월 29일
답변: Azzi Abdelmalek 2015년 6월 29일
please my question is how can i make run a Matlab script frome simulink ?
Thank you :)

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 6월 29일
  1. Click on any area of of your Simulink model, and write any text you want (the name of the script you want to run for example)
  2. select this text and right click and choose properties
  3. choose ClickFcn, add the name of your script
  4. When you click on the text you've created, you will run your script
Another way is
  1. right click on your model
  2. choose model properties
  3. then choose init fcn and add the name of your script or any lines of code
When you run your Simulink model, Simulink will call your script

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Event Functions에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by