I attempted to answer the question but I'm not sure if this is considered to be one function.
b = input('Enter a value ');x=sin(b); y=cos(b);disp('The sin of that value is ');disp(x);disp('Thecos of that value is '); disp(y);
matlab function
b = input('Enter a value ');x=sin(b); y=cos(b);disp('The sin of that value is ');disp(x);disp('Thecos of that value is '); disp(y);
Best Answer