How to grab message from command window and take action in code depending on it.
Mostrar comentarios más antiguos
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
2 comentarios
darova
el 8 de Oct. de 2019
What command do you want to check?
Arturs Vancans
el 8 de Oct. de 2019
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 12 de Oct. de 2019
0 votos
Use evalc()
Categorías
Más información sobre Debugging and Analysis en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!