Persistent variables not being initialized.
Afficher commentaires plus anciens
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 commentaires
Birdman
le 20 Avr 2018
What is your code to initialize your persistent variable?
Shubham Agarwal
le 20 Avr 2018
Birdman
le 20 Avr 2018
Also share your Simulink model please.
Shubham Agarwal
le 20 Avr 2018
Réponses (0)
Catégories
En savoir plus sur Simulink Functions dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!