% -----------------------------------------------------
% cylindertest.m
% -----------------------------------------------------
% A program used to test function cylinder.m and compute the
% area and volume of a solid cylinder. 
% -----------------------------------------------------
% Notes: none
% -----------------------------------------------------
% Copyright and license details available at matlabmarina.com
%------------------------------------------------------

% clear all variables and the command window
clear 
clc

% Given radius and height in mm
radius = 10;
height = 1;

% Calculute the area and volume
[area,volume] = cylinder(height,radius);

disp('The area of the cylinder in mm^2');
disp(area);

disp('The volume of the cylinder in mm^3');
disp(volume);
