Logo   Information, Signal, Images et ViSion C.N.R.S.   GdR   M.E.S.R.

modulo



Purpose
Congruence of a vector.


Synopsis
y = modulo(x,N)


Description
modulo gives the congruence of each element of the vector x modulo N. These values are strictly positive and lower equal than N.

Name Description Default value
x vector of real values, positive or negative  
N congruence number (not necessarily an integer)  
y output vector of real values, $>$0 and $\leq$N  




Example

         x=[1.3 -2.13 9.2 0 -13 2];
         modulo(x,2)	
         ans = 
               1.3000    1.8700    1.2000    2.0000    1.0000    2.0000


See Also
rem.



Eric Chassande-Mottin 2005-10-26

© GdR ISIS - Contact