www.gusucode.com > symbolic 源码程序 matlab案例代码 > symbolic/Plot3DParametricLineUsingSymbolicFunctionsExample.m

    %% Plot 3-D Parametric Line Using Symbolic Functions
% Plot the 3-D parametric line
% 
% $$\matrix{x(t) = \sin(t) \cr y(t) = \cos(t) \cr z(t) = \cos(2t).}$$

syms x(t) y(t) z(t)
x(t) = sin(t);
y(t) = cos(t);
z(t) = cos(2*t);
fplot3(x,y,z)