Scripts operate on existing data in the workspace, or they can create new data on which to operate.
Any variables that scripts create remain in the workspace after the script finishes so you can use them for further computations. These statements calculate rho for several trigonometric functions of theta , then create a series of polar plots. Try entering these commands in an M-file called petals.m . After the script displays a plot, press Return to move to the next plot. To see a listing of them, enter whos at the command prompt.