Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 mytrig 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 in degrees and the sine is the cos is and the tan is
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started