%% Modify 3-D Parametric Line After Creation
% Plot the parametric line
% \begin{array}{l}
% x = e^{-|t|/10} \sin(5|t|) \\
% y = e^{-|t|/10} \cos(5|t|) \\
% z = t.
% \end{array}
% Provide an output to make fplot return the plot object.

syms t
xt = exp(-abs(t)/10).*sin(5*abs(t));
yt = exp(-abs(t)/10).*cos(5*abs(t));
zt = t;
fp = fplot3(xt,yt,zt)

%
% Change the range of parameter values to [-10 10] and the line color to red by using the TRange and Color properties of fp respectively.

fp.TRange = [-10 10];
fp.Color = 'r';

% Copyright 2012 The MathWorks, Inc.