tags:

views:

199

answers:

1

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).

+8  A: 

isempty() was the function I was looking for. Teaches me to look at the example code from the documentation.

Lucas Lindström

related questions