How to load .prj file from windows command prompt?

19 ビュー (過去 30 日間)
Kondal A
Kondal A 2020 年 5 月 14 日
コメント済み: Kondal A 2020 年 5 月 14 日
Hi there,
I am new to Matlab and project files. I have to load .prj file which will generate some files for my project. I am able to load by double clicking on the .prj file from GUI but I want to load from command window. I have to write a bat file which will invoke the .prj file and load automatically.
Currently I am using this command from my windows command prompt, which will open matlab but doesn't do anything.
matlab load('D:\automation\simulink\autogen\autogen.prj').
Can anyboday please help me to resolv this issue? Thanks in advance - Kondal

採用された回答

Fangjun Jiang
Fangjun Jiang 2020 年 5 月 14 日
編集済み: Fangjun Jiang 2020 年 5 月 14 日
matlab.exe -r "open('D:\automation\simulink\autogen\autogen.prj')"
  3 件のコメント
Fangjun Jiang
Fangjun Jiang 2020 年 5 月 14 日
You would do matlab.exe -r "statement1;statement2;statement3". But best way is to put all those statements into one .m file and then matlab.exe -r "MyScript"
Kondal A
Kondal A 2020 年 5 月 14 日
You mean to say, I have to put matlab.exe -r "open('D:\automation\simulink\autogen\autogen.prj')" and "build" command into one .m file and then matlab.exe -r "script.m" right?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by