Declaring persistent variables in scripts is not supported in R2019b?
显示 更早的评论
Declaring persistent variables in scripts is not supported in R2019b?
1 个评论
Stephen23
2023-7-8
"Declaring persistent variables in scripts is not supported in R2019b?"
MATLAB does not support persistent variables in scripts:
MATLAB has supported persistent variables in functions since before R2006a:
回答(2 个)
Walter Roberson
2019-10-28
0 个投票
I just checked back to R2015a and it has not been supported in any release back that far.
Lacey Fauci
2023-7-8
0 个投票
I just figured this out. I called the function "funtion" - misspelling the word function. After I spelled it correctly, it fixed the syntax error and I was able to call in all my persistent variables with no problem. - July 2023
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with MATLAB 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!