Break Points without a function
1 view (last 30 days)
Show older comments
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?
0 Comments
Accepted Answer
per isakson
on 9 Aug 2014
Edited: per isakson
on 10 Aug 2014
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 Comments
More Answers (0)
See Also
Categories
Find more on Simulink Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!