www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SpecifySurfacePropertiesExample.m
%% Specify Surface Properties % Plot the parametric surface $x = u\sin(v)$, $y = -u\cos(v)$, $z = v$ with % different line styles for different values of $v$. For $-5<v<-2$, use a % dashed green line for the surface edges. For $-2<v<2$, turn off the edges % by setting the |EdgeColor| property to |'none'|. funx = @(u,v) u.*sin(v); funy = @(u,v) -u.*cos(v); funz = @(u,v) v; fsurf(funx,funy,funz,[-5 5 -5 -2],'--','EdgeColor','g') hold on fsurf(funx,funy,funz,[-5 5 -2 2],'EdgeColor','none') hold off