switch
📝 Syntax
📄 Description
💡 Examples
function c = demo_switch(a)
switch(a)
case {'hello', 'world'}
c = 'message';
case {'red', 'green', 'blue'}
c = 'color';
otherwise
c = 'not sure';
end
end
🔗 See also
🕔 History
Version
📄 Description
Last updated