Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 degreeStep 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