save the output of system command using matlab
古いコメントを表示
Hello! I am executing a system command via matlab. in the command I am writing the output to a file. when running the code I can find the generated file but I want that file be passed to Matlab as a variable, how can I get to this ? see the code bellow (I want something so that fileA.txt be attributed to cmdout or any thing similar so Matlab can recognize and work directly with the file)
command = 'MyInstuction >fileA.txt';
[status,cmdout] = system(command);
採用された回答
その他の回答 (2 件)
Walter Roberson
2016 年 11 月 28 日
Leave off the redirection. Just
command = 'MyInstuction';
[status,cmdout] = system(command);
Ano
2016 年 11 月 29 日
0 投票
3 件のコメント
Jan
2016 年 11 月 29 日
Please post comments in the comment section, not as an answer. Thanks.
How can the generated file be large, if you omit the generation of a file? How could we know, where you can find the wanted parts of the replied string?
Ano
2016 年 11 月 29 日
Jan
2016 年 11 月 29 日
If the repsonse is time critical, please answer my questions for clarifications. I'd really like to assist you, but I cannot guess, "how can I know where my data is placed".
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!