Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

B.

Documentation
1. Create the following script:

script3a.m
%This program calculates the area of a circle

%First the radius is assigned


radius = 5
%The area is calculated based on the radius
area = pi*(radius^2)

Then run the following in the Command Window:


>> help script3a <Enter>

You might also like