Question: Write a MAT LAB function named circles that will calculate the circumference and area of five circles. The function should have five input arguments (diameter)
Write a MAT LAB 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 A C A C A] or [C C C A A A]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
