function y = lyngby_mod(a,b)

% lyngby_mod		- Modulus function
%
%       function y = lyngby_mod(a,b)
%
%       Input:  a  Number to be mod'd
%               b  Dividend
%       
%       Output: y  Modulus of a
%
%       The mod function was missing in Matlab 4.2, and for backwards
%       compatibility this is included

% cvs : $Id: lyngby_mod.m,v 1.3 1997/07/22 16:25:02 fnielsen Exp $
%       $Revision: 1.3 $    


%	Date		Author		Version
%       1997-07-03      Peter Toft      Initial version


    y=a-round(b.*floor(a./b));
