www.gusucode.com > symbolic 源码程序 matlab案例代码 > symbolic/Modify3DParametricLineAfterCreationExample.m
%% Modify 3-D Parametric Line After Creation % Plot the parametric line % % $$\matrix{x = e^{\strut{-|t|/10}} \sin(5|t|) \cr y = e^{-|t|/10} \cos(5|t|) \cr z = t.}$$ % % 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';