www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SpecifyLinePropertiesAndDisplayMarkers2Example.m
%% Specify Line Properties and Display Markers % Plot the same 3-D parametric curve three times over different intervals % of the parameter. For the first interval, use a line width of 2 points. % For the second, specify a dashed red line style with circle markers. For % the third, specify a cyan, dash-dotted line style with asterisk markers. fplot3(@(t)sin(t), @(t)cos(t), @(t)t, [0 2*pi], 'LineWidth', 2) hold on fplot3(@(t)sin(t), @(t)cos(t), @(t)t, [2*pi 4*pi], '--or') fplot3(@(t)sin(t), @(t)cos(t), @(t)t, [4*pi 6*pi], '-.*c') hold off