필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

debugging operation

조회 수: 1 (최근 30일)
som
som 2012년 5월 8일
마감: MATLAB Answer Bot 2021년 8월 20일
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?

답변 (1개)

Daniel Shub
Daniel Shub 2012년 5월 8일
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

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by