www.gusucode.com > symbolic 源码程序 matlab案例代码 > symbolic/LineStyleAndWidthForSurfacePlotExample.m
%% Line Style and Width for Surface Plot % Plot the parametric surface $x = s\sin(t)$, $y = -s\cos(t)$, $z = t$ % with different line styles for different values of $t$. For $-5<t<-2$, % use a dashed line with green dot markers. For $-2<t<2$, use a |LineWidth| % of |1| and a green face color. For $2<t<5$, turn off the lines by setting % |EdgeColor| to |none|. syms s t fsurf(s*sin(t),-s*cos(t),t,[-5 5 -5 -2],'--.','MarkerEdgeColor','g') hold on fsurf(s*sin(t),-s*cos(t),t,[-5 5 -2 2],'LineWidth',1,'FaceColor','g') fsurf(s*sin(t),-s*cos(t),t,[-5 5 2 5],'EdgeColor','none')