Write a MATLAB functioncomputeCylinderVolumewhich should callcomputeCircleArea.computeCylinderVolumeshould take as parameters the height and the radius of a cylinder (in that order), and should return the cylinder’s volume. (If you do not recall the formula for a cylinder’s volume, find it on the Internet.)
Extracted text: function area = computeCircleArea(r) for c = 1:length(r) if r(c)>=0 1 3 4 area = pi.*r.^2; 5 else b = r<0; area="" (b)="-1;" 7="" 8="" end="" 9="" end="" 10="">0;>
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here