SyntaxFix
Write A Post
Hire A Developer
Questions
if you would use octave you could do it like this - but sadly matlab does not support this possibility
function hello (who = "World") printf ("Hello, %s!\n", who); endfunction
(taken from the doc)