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 and area of five circles. The function should have five input arguments (diameter) and return a two-dimensional array containing the circumference and area of the five circles. Calculate the circumference and area for the circles with diameters of 1, 2, 3, 4, and 5 cm.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
