function making input twice

by

 

calculate double of a number by just passing the number in the argument of the function

myfun(x)
function [y] = myfun(x)
y=2*x;
end

Contact us