#### STOIKOV

##### Full Member level 4

**matlab attempt to execute script as a function**

I have an error when trying to plot a polar chart in matlab:

% polar plot of z

r = 1.2; theta = 10*pi/180;

angle = 0:theta:36*theta; mag = r.^(angle/theta);

polar(angle,mag)

grid

title('Polar Plot')

Attempt to execute SCRIPT polar as a function.

On line 4 ==> polar(angle,mag)

Thanks.