% plotting 3D parametric equations
%         (vector-valued functions)
%

%Set your range of t-values:
t=0:0.01:6*pi; %min:increment:max

% Enter your x(t), y(t), and z(t) functions:
% (Be sure to use .^ and .* and ./ for exponents, multiplication and
% division)
x=cos(t); 
y=sin(t);
z=t;

%Plot the result:
plot3(x,y,z); % plot the points (x,y,z)
pbaspect([1 1 1]) % fix aspect ratio

% % other examples:
% 
% %Toroidal spiral:
% t=0:0.01:2*pi;
% x=(2+cos(12*t)).*cos(t); 
% y=(2+cos(12*t)).*sin(t);
% z=sin(12*t);
% plot3(x,y,z);
% 
% %"looped wave" like a sine function glued to a cylinder:
% t=0:0.01:2*pi;
% x=(cos(t)-2).*cos(t); 
% y=(cos(t)-2).*sin(t);
% z=sin(24*t);
% plot3(x,y,z);
% 
% %like a globular perioid spring type structure:
% t=0:0.01:2*pi;
% x=(cos(t)-1).*cos(12*t); 
% y=(cos(t)-1).*sin(12*t);
% z=sin(t);
% plot3(x,y,z);
% 
% %parabola / cubic combo:
% t=-1:0.01:1;
% x=t; 
% y=t.^2;
% z=t.^3;
% plot3(x,y,z);
% 
