In Matlab Create a function file that takes five numbers as

In Matlab:

Create a function file that takes five numbers as input arguments and returns the minimum among those numbers as an output argument.

Solution

function min = findmin(a,b,c,d,e)
min = a;
if(b<min)
min=b;
end
if(c<min)
min=c;
end
if(d<min)
min=d;
end
if(e<min)
min=e;
end
end
disp(findmin(1,2,3,-4,5));

In Matlab: Create a function file that takes five numbers as input arguments and returns the minimum among those numbers as an output argument.Solutionfunction

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site