What are persistent variables?
What are persistent variables? Correct Answer Variables which retain values between calls to the function
Persistent variables help to retain the value which has been produced by a sub-function. They are local to the sub-function but MATLAB reserves permanent storage for them so they might seem like global variables. They are never shown in the workspace so they differ from global variables.
মোঃ আরিফুল ইসলাম
Feb 20, 2025