I wrote a function:
function MIN = mymin(vec) MIN = vec(1); for i1 = 2:length(vec) if MIN > vec(i1), MIN = vec(i1); end endend
I need to satisfy the condition: The function is not receiving a vector; rather, all the values are separate arguments.
How to do it?
Best Answer