Break Points without a function

조회 수: 4 (최근 30일)
Rick
Rick 2014년 8월 9일
편집: per isakson 2014년 8월 10일
Can you use break points to debug code that is not a function? I just want to see how a block of code that I wrote is behaving, even though the block is not a function file. If so, how do I use break points to do this?

채택된 답변

per isakson
per isakson 2014년 8월 9일
편집: per isakson 2014년 8월 10일
With R2013a it's simple, just set a breakpoint and click [Run]. On the other hand I would have answered: add the line
function dummy()
at the to of the file. That's the way I used to do it.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by