how does mod function work in matlab. There are any references about how does mod function work in matlab in here. you can look below.