Question: (MATLAB QUESTION) function [ volume , area ] = cylinderInfo( height , radius ) % % end function [ volume ] = calcVolume( height ,
(MATLAB QUESTION)
function [ volume , area ] = cylinderInfo( height , radius ) %
% end
function [ volume ] = calcVolume( height , radius ) %
%
function [ area ] = calcSurfArea( height , radius ) %
% end
4.3 Subfunctions D Modify cylinderInfo.m, so that the function returns the volume and area of a cylinder, given the height and radius of the base. Volume x radius2 x height Surface Area 2 x radius2 +height x 2 x Tx radius Calculate the Volume in the subfunction calcVolume Calculate the Surface Area in the subfunction calcSurfArea
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
