www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/Plot3DParametricLineExample.m

    %% Plot 3-D Parametric Line
% Plot the 3-D parametric line
% 
% $$\matrix{x = \sin(t) \cr y = \cos(t) \cr z = t}$$
% 
% over the default parameter range |[-5 5]|.

xt = @(t) sin(t);
yt = @(t) cos(t);
zt = @(t) t;
fplot3(xt,yt,zt)