No BSD License  

Highlights from
aide mémoire Matlab (seconde édition)

from aide mémoire Matlab (seconde édition) by Jean-Thierry
les m-fichiers de l'aide mémore Matlab seconde édition

ex_stream2.m
f = inline('sin(abs(z).^2/20).*exp(-abs(z).^2)');
x= linspace(-2, 2, 21); [xx, yy]= meshgrid(x);
z = f(xx+i*yy);
surf(z), shading interp; colormap(gray); axis off
[u,v]=gradient(z); h=streamslice(u,v);      
for i=1:length(h); 
  zi = interp2(z,get(h(i), 'xdata'), get(h(i),'ydata'));
  set(h(i),'zdata', zi, 'Color', 'k');
end
alpha 0.5

Contact us at files@mathworks.com