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!