Question: Please answer it in MATLAB!!!! Create an anonymous function cube that cubes the value(s) from a scalar, column matrix, or row matrix entered into it.

 Please answer it in MATLAB!!!! Create an anonymous function cube that Please answer it in MATLAB!!!!

Create an anonymous function cube that cubes the value(s) from a scalar, column matrix, or row matrix entered into it. Given a radius r, the area of a circle is given as A = pi r^2 Similarly, the volume of a sphere is given as V = 4/3 pi r^3 Declare r as a global variable in your main code. In a function calculate the area of the circle and the volume of the sphere with the given radius r, returning these values to the main code. Your function should have no inputs and two outputs. You should neglect units for this problem, and use the value r = 5

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!