I’ve just started learning MATLAB, and the first thing i tried is to plot a spiral,
I found two algorithms on searching,
PROGRAM 1 –
t = [0:0.1:(100*pi)];
t=sqrt(t);
r=2*t;
polar(t,r);
PROGRAM 2
t = linspace(0,100*pi,1000);
x = t.*cos(t);
y = t.*sin(t);
plot(x,y)
Both are working fine, but i would like to to know the basic difference between the plot() and polar() functions…
plotplots in the Cartesian coordinate system;polarplots in the polar one.A quick search through the documentation or Google would make made this pretty obvious.