function z=rnd2str(x,y) %RND2 Round to the nearest, convert to string % RND2(x,y) rounds the number x to the nearest multiple of y, % then changes the result to a string. z1=round(x/y)*y; z=num2str(z1);