UNIX bash shell in an m file?
古いコメントを表示
Hello,
I need to invoke a bash file from matlab which is easy enough to do. However i would like instead to write the bash code in an m file and execute the bash commands. The bash code would invoke a standalone application and pipe some things to it.
Can i simply have all bash commands in a string and use
system(string)
so it would look something like
system('path/ish -file placeholder -mode text <<XXX...
a...
b...
3...
ect ...
XXX')
採用された回答
その他の回答 (1 件)
Kaustubha Govind
2012 年 2 月 14 日
0 投票
Yes, I think that is exactly how you would do it. Are you running into any trouble doing that?
2 件のコメント
alexander
2012 年 2 月 14 日
Kaustubha Govind
2012 年 2 月 14 日
The command would execute exactly as it would in a shell - so I would first test that line in the shell to make sure it's error free.
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!