Question: Using Matlab and GUI function Define a variable named angle to be 45 degree. Convert angle to radians using the following: Radians = degrees *

Using Matlab and GUI function

Using Matlab and GUI function Define a variable named "angle" to be

Define a variable named "angle" to be 45 degree. Convert "angle" to radians using the following: Radians = degrees * (pi/180) Store the result in the variable "angleRad". Use the predefined variable "pi" in your calculation. Repeat the calculation for angle = 60 degree, 75 degree, and 90 degree. Using the "angleRad" you defined in problem 1, find the cosine and sine of "angle". Show the results in variables "cosAngle" and "sinAngle", respectively. Using variables "cosAngle" and "sinAngle", define the following: z = cos^2 (alpha) + sin^2 (alpha) A well-known identity in trigonometry is that the sum of cosine squared and sine squared of an angle always equals one. If your result for z was not one, review and redo the operations. Test your code for alpha = 45 degree, 60 degree, 75 degree, and 90 degree

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!