Borrar filtros
Borrar filtros

How to debug effectively inside MATLAB function block in Simulink?

6 visualizaciones (últimos 30 días)
VIGNESH BALAJI
VIGNESH BALAJI el 31 de Oct. de 2023
Comentada: VIGNESH BALAJI el 19 de Feb. de 2024
Debugging in MATLAB is easy as all the variables are present in the workspace.
In Simulink, We need to add scopr to debug and especially if I use a MATLAB function block and have local variables, I want to check the values of them without printing them or taking them out of the block as an output and seeing them in scope or Display block. Can anyone please let me know effective ways to debug these kind of code. I am looking forward for your answers :)

Respuestas (1)

madhan ravi
madhan ravi el 26 de Nov. de 2023
Debugging MATLAB Function Block is the same as you would normally debug MATLAB Code. Additional advantage is that you can watch the variables in Symbols Pane.

Categorías

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

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by