How to grab message from command window and take action in code depending on it.
이전 댓글 표시
How to check command window output and performe action depending on it.
for k = 1:500;
z=z+1;
check(z); %% check.p file checking z and gives output in command window
%% code that should breake the code if command window throws "z is correct"
end
채택된 답변
추가 답변 (1개)
Walter Roberson
2019년 10월 12일
0 개 추천
Use evalc()
카테고리
도움말 센터 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!