This function will round an inputed matrix, of any size, and round each value towards the vector of choices given. It can also be given a type of round ('floor','fix','ceil','round','away'), and will round toward -inf,0,inf,closest value, or away from 0 respectively.
Tom R (2021). roundtowardvec (https://www.mathworks.com/matlabcentral/fileexchange/37674-roundtowardvec), MATLAB Central File Exchange. Retrieved .
Inspired: Round to X
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!