Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Spiral with constant velocity (same distance betwee coordinate)
Replies: 7   Last Post: Feb 27, 2013 2:26 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Markus Due Jakobsen

Posts: 43
Registered: 4/29/08
Spiral with constant velocity (same distance betwee coordinate)
Posted: Feb 25, 2013 10:39 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi
I have a problem creating a spiral with constant velocity (same distance between coordinates ? not constant angular velocity).

These lines of code should create a spiral with constant angular velocity:
Num = 1000; Rad = 20*pi; Width = 10;
t = linspace(0,1,Num);
tRad = t.*Rad;
x = (tRad.*cos(tRad)*Width);
y = (tRad.*sin(tRad)*Width);

These lines creates a spiral with ?almost? constant velocity:
Num = 1000; Rad = 20*pi; Width = 10;
t = linspace(0,1,Num).^0.5;
tRad = t.*Rad;
x = (tRad.*cos(tRad)*Width);
y = (tRad.*sin(tRad)*Width);

However, I want to create a spiral with constant velocity (constant distance between the coordinates) and I want to be able to change the amplitudes (i.e. y>0 coordinates should be multiplied by 1.6) without changing the velocity. Any Ideas on how to do this?

Kind regards
Markus



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.