www.gusucode.com > symbolic 源码程序 matlab案例代码 > symbolic/PlotMultiple3DParametricLinesOnSameFigureExample.m
%% Plot Multiple Lines on Same Figure % Plot multiple lines either by passing the inputs as a % vector or by using |hold on| to successively plot on the same figure. % If you specify |LineSpec| and Name-Value arguments, they apply to all % lines. To set options for individual lines, use the function handles returned by |fplot3|. % % Divide a figure into two subplots using |subplot|. On the first subplot, % plot two parameterized lines using vector input. On the second % subplot, plot the same lines using |hold on|. syms t subplot(2,1,1) fplot3([t -t], t, [t -t]) title('Multiple Lines Using Vector Inputs') subplot(2,1,2) fplot3(t, t, t) hold on fplot3(-t, t, -t) title('Multiple Lines Using Hold On Command') hold off