Question: Create a script named: Ex 1 B _ . m ( e . g . , Ex 1 B _ g _ zouridakis.m ) 2

Create a script named: Ex1B_.m (e.g., Ex1B_g_zouridakis.m)
2. In your script, define a variable to represent the radius of a circle.
a. Set its value to 5.
3. Using this radius, calculate and store in separate variables:
a. The circumference of the circle
b. The area of the circle
4. Next, consider an angle of 45 degrees. In your script:
a. Convert this angle to radians (show the conversion formula)
b. Calculate and store the sine of this angle
c. Calculate and store the cosine of this angle
5. Use the `fprintf()` function to display all your results. Your output should include:
a. The radius of the circle
b. The calculated circumference
c. The calculated area
d. The sine of 45 degrees
e. The cosine of 45 degrees
6. Make sure to label each result clearly in your output.
7. Make sure that in your script you write comments separating the steps above, like this:
%---- Step 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 Programming Questions!