MATLAB: Round off to nearest 5 instead of 10

round-off

is that any way to round off to nearest 5 instead of 10? for example, round off 346 to 345; 293 to 295; 296 to 295;
thx for help :p

Best Answer

round( x / 5 ) * 5;