If I declare a variable as 'persistent' in MATLAB, how can I check if it has been initialized or not?
The exist() function apparently doesn't work (as the variable is treated as in existence as soon as I declare it to be persistent).
isempty() was the function I was looking for. Teaches me to look at the example code from the documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With