Rounding function in Matlab

When processing the data, we may need for the data containing a decimal rounding process, rounding function matlab inside several common, fix, round, floor, ceil

Function fix - rounding toward zero. () (Round towards ZERO)
round function - rounding (rounding) to the nearest direction. (Round towards Nearest Integer)
Floor function - the general direction of rounding toward minus infinity. (Round towards minus Infinity)
ceil function - the general direction of rounding toward plus infinity. (Ceil Round towards plus infinity)

Published 77 original articles · won praise 23 · views 7562

Guess you like

Origin blog.csdn.net/Hots3y/article/details/98721187