Break Points without a function

4 visualizaciones (últimos 30 días)
Rick
Rick el 9 de Ag. de 2014
Editada: per isakson el 10 de Ag. de 2014
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?

Respuesta aceptada

per isakson
per isakson el 9 de Ag. de 2014
Editada: per isakson el 10 de Ag. de 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.

Más respuestas (0)

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by