Question: MATLAB In this problem, in the calling script: Asks the user to enter an angle. ( could be in degree or radian ) And a

MATLAB In this problem, in the calling script: Asks the user to enter an angle. ( could be in degree or radian) And a letter: r for radian, or d for degree, (with radian as the default). Then the script calls a function called my_trig with the above angle and the letter as input, calculates the sin, cos and tan of the entered angle. The function also pays attention to whether the angle is in degree or radian by using the right function (example: sin when the letter is r, and sind when the letter is d) The output must be in form of a sentence similar to the following example: You entered 45 in degrees and the sine is 0.707, the cos is 0.707 and the tan is 1"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!