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!