r=5mm, h=12mm • computes the volume of a cone with radius and height . • assigns the resulting value (in mm3) to a variable named vol. in matlab in matlab
main.m
r = 5; % radius in mmh = 12; % height in mm% compute the volume of a conevol = (1/3) * pi * r^2 * h; % volume in mm^3