Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

debugging operation

1 visualización (últimos 30 días)
som
som el 8 de Mayo de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hi, I wrote a program and I want to debug it usnig 'keyboard command'.
clc; clear; tic ;
for i=1:100
a=i^2+i+10
keyboard
end
toc
I want to finish debugging operation after seeing some results for i=1,2,3, etc, depend on the my interest. How can I do it?

Respuestas (1)

Daniel Shub
Daniel Shub el 8 de Mayo de 2012
I am not quite sure what you are asking but what about
clc; clear; tic ;
for i=1:100
a=i^2+i+10
if i < 3
keyboard
end
end
toc

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by