How to open the simulink file using command
조회 수: 150 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
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
2016년 11월 14일
편집: Michael Bernard
2016년 11월 14일
open_system('name of file') Then press enter.Good luck :)
추가 답변 (1개)
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
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
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!