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));

