Hello,
the question is pretty simple. I have a function with two optional parameters:
y = f(x,opt1,opt2)
The user may provide either opt1 or opt2, but not both. In the function, I want to create an array with either lenght opt1 or step size opt2, so the user can only provide one of the optional parameters:
if opt1 v = linspace(a,b,opt1)endif opt2 v = a:opt2:bend
How to proceed?
Thank you, Thales
Best Answer