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

    %% Modify 3-D Parametric Line After Creation
% Plot the parametric line
% 
% $$\matrix{x = e^{-|t|/10} \sin(5|t|) \cr y = e^{-|t|/10} \cos(5|t|) \cr z = t.}$$
% 
% Assign the parameterized function line object to a variable.

xt = @(t)exp(-abs(t)/10).*sin(5*abs(t));
yt = @(t)exp(-abs(t)/10).*cos(5*abs(t));
zt = @(t)t;
fp = fplot3(xt,yt,zt)
%%
% Change the range of parameter values to |[-10 10]| and change the line
% color to red.
fp.TRange = [-10 10];
fp.Color = 'r';