comparison scripts/plot/surfc.m @ 17120:a639221f9863

sombrero.m: Overhaul documentation and make calling forms equivalent to peaks() * scripts/plot/sombrero.m: Overhaul documentation. Return only Z argument if nargout == 1. * scripts/plot/ribbon.m, scripts/plot/surf.m, scripts/plot/surfc.m: Rephrase %!tests to take advantage of new calling form for sombrero.
author Rik <rik@octave.org>
date Wed, 31 Jul 2013 13:43:44 -0700
parents 1118d566bcd4
children d4549655b92e
comparison
equal deleted inserted replaced
17119:bd50e0660545 17120:a639221f9863
88 %! surfc (Z); 88 %! surfc (Z);
89 89
90 %!demo 90 %!demo
91 %! clf; 91 %! clf;
92 %! colormap ('default'); 92 %! colormap ('default');
93 %! [~,~,Z] = sombrero (); 93 %! Z = sombrero ();
94 %! [Fx,Fy] = gradient (Z); 94 %! [Fx,Fy] = gradient (Z);
95 %! surfc (Z, Fx+Fy); 95 %! surfc (Z, Fx+Fy);
96 %! shading interp; 96 %! shading interp;
97 97
98 %!demo 98 %!demo