gistlib
main.mfunction area = computeSurfaceArea(radius) a = 4 * pi * radius^2; area = a; end radius = 5; result = computeSurfaceArea(radius); disp(result); 152 chars9 lines
function area = computeSurfaceArea(radius) a = 4 * pi * radius^2; area = a; end radius = 5; result = computeSurfaceArea(radius); disp(result);
gistlibby LogSnag