How to load .prj file from windows command prompt?
19 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
Fangjun Jiang
2020 年 5 月 14 日
編集済み: Fangjun Jiang
2020 年 5 月 14 日
matlab.exe -r "open('D:\automation\simulink\autogen\autogen.prj')"
3 件のコメント
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"
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!