This preview shows page 1. Sign up to view the full content.
Unformatted text preview: %a circle has total radians 2.*pi; and it will have the number of points %multiplied by the number of revolutions x = r.*cos(phi); %the x-variable will be cos of the phi values y = r.*sin(phi); %the y-variable will be sin of the phi values z = linspace(0,d.*rev,p.*rev); %the z-variable will be the number of points multiplied by the number of %revolutions, between 0 and the distance multiplied by the number of %revolutions plot3(x,y,z); %plots the 3 variables title('Spiral'); %titles the graph xlabel('x-axis'); ylabel('y-axis'); zlabel('z-axis'); %above three label the x,y, and z axes respectively axis square; %makes the length of the axes the same end...
View Full Document
This note was uploaded on 10/21/2010 for the course CS 1371 taught by Professor Stallworth during the Spring '08 term at Georgia Institute of Technology.
- Spring '08