4using matlab Write a program that asks for an angle as the

4.using matlab Write a program that asks for an angle as the input, passes that angle to the sine function, and displays the result to five decimal places as: The sine of ____ is ______. If 0.3 is entered as the angle, the result would be: The sine of 0.30000 is 0.29552.

Solution

a = input(\'Input angle : \');
b=sin(a);
disp([\'The sine of \',num2str(a,\'%.5f\'),\' is \',num2str(b,\'%.5f\'),\'.\']);

OUTPUT:
Input angle : 0.3
The sine of 0.30000 is 0.29552.

4.using matlab Write a program that asks for an angle as the input, passes that angle to the sine function, and displays the result to five decimal places as: T

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site