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 Center および File ExchangeProgrammatic Model Editing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by