Persistent variables not being initialized.
이전 댓글 표시
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
Birdman
2018년 4월 20일
What is your code to initialize your persistent variable?
Shubham Agarwal
2018년 4월 20일
Birdman
2018년 4월 20일
Also share your Simulink model please.
Shubham Agarwal
2018년 4월 20일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!