matlab -r in shell not work
古いコメントを表示
I have shell script naming test.sh with code like follows in it:
matlab -nodisplay -nosplash -nodesktop /r "test('$a','$b')"
then i run the test.sh in windows10, the matlab command windows is opened but my matlab function test not execute in the window. I want to know why, and how to fix it.
4 件のコメント
Rik
2022 年 9 月 21 日
This code will open a new instance of Matlab. Did you expect it to execute in an already opened instance?
PanZhang Zhang
2022 年 9 月 21 日
Steven Lord
2022 年 9 月 21 日
What does "not execute" mean in this context?
- Do you receive warning and/or error messages? If so the full and exact text of those messages (all the text displayed in orange and/or red in the Command Window) may be useful in determining what's going on and how to avoid the warning and/or error.
- Does it do something different than what you expected? If so, what did it do and what did you expect it to do?
- Did MATLAB crash? If so please send the crash log file (with a description of what you were running or doing in MATLAB when the crash occured) to Technical Support so we can investigate.
PanZhang Zhang
2022 年 9 月 21 日
編集済み: Jan
2022 年 9 月 21 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!