persistent
📝 Syntax
📥 Input argument
📄 Description
💡 Examples
function r = test_persistent_function()
persistent calls;
if isempty(calls)
calls = 0;
end
disp(['nb calls to test_persistent_function: ', int2str(calls)]);
r= calls;
calls = calls + 1;
end🔗 See also
🕔 History
Version
📄 Description
Last updated