unable to pass command line arguments to matlab script
古いコメントを表示
I'm not using a function here. I just want to pass an argument to matlab script from command line.
Here is the command I'm using,
Matlab 2020a -batch "x=100691;run <matlab>.m"
x is the variable I want to set from command line.
I end getting this error,
Unrecognized function or variable 'x'.
3 件のコメント
dpb
2023 年 4 月 11 日
What's the rest of the line intended to be doing??? Specifically, what's <matlab>.m? It's going to pass the literal string you type.
What's the script look like?
NISCHAY
2023 年 4 月 12 日
Rik
2023 年 4 月 12 日
I would say this is a lesson in using functions to do actual work. That way you have a documented interface without such issues.
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Data Type Identification についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!