How does MATLAB\'s round function work with .5? Like 5.5? Does it round up to 6, or round down to 5? The Mathworks page talking about this function says nothing about this, and
This Rounding Functions Collection that is available on MATLAB Exchange might be of interest as well. It includes M-files/code for several rounding methods that are not included with MATLAB, and a pdf illustrating these together with the standard MATLAB rounding methods.