How to grab message from command window and take action in code depending on it.
Show older comments
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
Accepted Answer
More Answers (1)
Walter Roberson
on 12 Oct 2019
0 votes
Use evalc()
Categories
Find more on Debugging and Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!