Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Math Forum
»
Discussions
»
Software
»
comp.softsys.matlab
Notice: We are no longer accepting new posts, but the forums will continue to be readable.
Topic:
Spiral with constant velocity (same distance betwee coordinate)
Replies:
7
Last Post:
Feb 27, 2013 2:26 AM




Spiral with constant velocity (same distance betwee coordinate)
Posted:
Feb 25, 2013 10:39 AM


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



