How can I set a default value for a function argument in Matlab/Octave?

前端 未结 0 1516
一个人的身影
一个人的身影 2020-11-22 05:43

I have this function in Matlab:

function f(array, N)
...
end

N may not be passed. So I want to have a default value, for example 5:

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题