Break Points without a function

1 次查看(过去 30 天)
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