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_atan2.m
warning off 
% pour viter les messages lors de divisions par zro
x = [-1 1 -1 1 0 0 1]
y = [-1 -1 1 1 0 1 0]
z1 =  atan(y./x)
z2 =  atan2(y, x)
x = linspace(-0.5, 0.5, 30);
[xx,  yy] = meshgrid(x); surf(xx, yy, atan2(yy, xx));
colormap(gray);  shading interp; brighten(-0.6)
 

Contact us at files@mathworks.com