No BSD License  

Highlights from
Introduction à Matlab (deuxième édition)

from Introduction à Matlab (deuxième édition) by Jean-Thierry
tous les m-fichiers relatifs à la deuxième édition de l'Introduction à Matlab

belongs(x, to_y)
function val = belongs(x, to_y)
% BELONGS   appartenance ou inclusion
%       function val = belongs(x,to_y)

to_y = to_y(:)';
val = 0;
for i = x(:)'
  if (find(to_y==i)) == []  % voir find 
    return;          % section suivante
  end;
end;
val = 1;

Contact us at files@mathworks.com