where to set up persistent variable code example Example: matlab check if persistent variable exists if isempty(variable); %initialize variable end