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 max = getmax(n1, n2, n3, n4, n5)
max = n1;
if(max<n2)
max = n2;
end
if(max<n3)
max = n3;
end
if(max<n4)
max = n4;
end
if(max<n5)
max = n5;
end
end

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

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site