I am supposed to create xmin as a function but no matter what I try MatLab always displays:
Error using minfunToo many input arguments.
My code looks like this:
function xmin=minfun(x)n=length(x);xmin=x1; for k=2:n if (x(k)<xmin) xmin=x(k); end endend
I really have no idea where I made a mistake…
Best Answer