stop execution of code to check results
조회 수: 1 (최근 30일)
이전 댓글 표시
Is there a way to stop code from executing so that results can be checked. For example something like
if i == 100000
Stop
end
I want to check the values of a parameter when the iteration is equal to 100,000.
How can I do that?
댓글 수: 0
채택된 답변
Star Strider
2021년 9월 11일
편집: Star Strider
2021년 9월 11일
I would just display it instead —
if i == 100000
fprintf('Parameter = %f at iteration %d\n', Parameter, i)
end
Of course, it is also possible to save these to a vector.
.
댓글 수: 0
추가 답변 (2개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Debugging and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!