How to open the simulink file using command

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일

5 개 추천

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일

1 개 추천

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
>> 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

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

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

태그

질문:

2016년 11월 13일

댓글:

2021년 1월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by