How to open the simulink file using command

조회 수: 196 (최근 30일)
Ravi
Ravi 2016년 11월 13일
댓글: Aik-Siong Koh 2021년 1월 4일
i have a simulink file named r.mdl. It is saved in desktop location. How can i open that file using command, in command window.

채택된 답변

Walter Roberson
Walter Roberson 2016년 11월 13일
open_system() passing in the file name, including directory if it is not in your current directory.
  댓글 수: 1
Michael Bernard
Michael Bernard 2016년 11월 14일
편집: Michael Bernard 2016년 11월 14일
open_system('name of file') Then press enter.Good luck :)

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

추가 답변 (1개)

Zhe Chen
Zhe Chen 2020년 5월 10일
you can just type the name of the model file (without the extension name) on the command line. There is no need to use the function 'open_system'.
  댓글 수: 2
Ravi
Ravi 2020년 5월 10일
Thanks
Aik-Siong Koh
Aik-Siong Koh 2021년 1월 4일
>> open_system('matlab/test/toolbox/simulink/sampletimes/explicitPartitioning/shared/models/mInvalidPartitionNissanPortNameConflict.slx')
Above works fine. But below doesn't. Please advise. Thanks.
>> matlab/test/toolbox/simulink/sampletimes/explicitPartitioning/shared/models/mInvalidPartitionNissanPortNameConflict
Execution of script matlab as a function is not supported:
/local-ssd/akoh/4544a/matlab/toolbox/matlab/general/matlab.m

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

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by