Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Mat lab plotting a logarithmic spiral

1,283 views
Skip to first unread message

taltas

unread,
May 21, 2008, 9:05:27 AM5/21/08
to
Hi Ive been trying to plot a logarithmic spiral in matlab but it doesn't quite look like a spiral, heres the commands I entered:
>> t = [0:0.01:(2*pi)];
>> x = ((exp(t)).*(cos(t)));
>> y = ((exp(t)).*(sin(t)));
>> plot(x,y)

Any ideas???

skouliki katelouzos

unread,
Feb 17, 2009, 2:53:01 PM2/17/09
to
taltas <tal...@yahoo.com> wrote in message <8303814.12113751583...@nitrogen.mathforum.org>...
try this:
t = [0:0.1:(100*pi)];
t=sqrt(t);
r=2*t;
polar(t,r);

or this:
t = [0:0.01:(20*pi)];
x = ((exp(0.1*t)).*(cos(t)));
y = ((exp(0.1*t)).*(sin(t)));
plot(x,y)

0 new messages