How to grab message from command window and take action in code depending on it.
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 12 Okt. 2019
0 Stimmen
Use evalc()
Kategorien
Mehr zu Debugging and Analysis finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!