Gistlib Logo

gistlib

function that calculates the area of cylinder in matlab in matlab , given 45 in height and 6 in radius in matlab

main.m
% Input
height = 45;
radius = 6;

% Calculate area of cylinder
surface_area = 2 * pi * radius * (radius + height);

surface_area
129 chars
9 lines

similar matlab code snippets

how to calculate the area of a square in matlab
how to calculate the area of a triangle in matlab
how to calculate the area of a polygon in matlab
how to calculate the area of a parallelogram in matlab
calculate the area of a sphere in matlab
how to calculate the area of a trapezoid in matlab
how to calculate the area of a segment in matlab
how to calculate the area of a sector in matlab
calculate the area of a triangle in matlab
calculate the volume of a pyramid in matlab

related categories

matlab
geometry
calculate

gistlibby LogSnag