Question: Write a MATLAB function named circles that will calculate the circumference and area of five circles. The function should have five input arguments (diameter) and

 Write a MATLAB function named circles that will calculate the circumference

Write a MATLAB function named circles that will calculate the circumference and area of five circles. The function should have five input arguments (diameter) and returns a two-dimensional array containing the circumference and area of the five circles. Calculate the circumference and area for circles with diameters of 1, 2, 3, 4, and 5 cm. Two ways you could format the final array could be [C C C A A A] or [C A C A C A]

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!