What is your code to initialize your persistent variable?
Persistent variables not being initialized.
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am trying to initialize persistent variables in a Matlab function block in Simulink. I have used the debug mode to check the value of the variables. I find it strange that even after execution of the initialize statement, the variable is empty. Is there any reason for this to happen?
4 comentarios
Respuestas (0)
Ver también
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!