|
|
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
|
|