Write a function that will receive the radius r of a sphere. It will calculate and return the volume of the sphere (4/3
Posted: Thu Apr 28, 2022 3:35 pm
matlab code
Write a function that will receive the radius r of a sphere. It will calculate and return the volume of the sphere (4/3 a py). If the function call expects two output arguments, the function will also return the surface area of the sphere (4 p2). When any other number of values (zero or more than 2) are expected by the user, then the following warning is printed. "This function cannot operate" Write your Matlab code inside the box below
Write a function that will receive the radius r of a sphere. It will calculate and return the volume of the sphere (4/3 a py). If the function call expects two output arguments, the function will also return the surface area of the sphere (4 p2). When any other number of values (zero or more than 2) are expected by the user, then the following warning is printed. "This function cannot operate" Write your Matlab code inside the box below