MATLAB: How can i round up all the numbers in this matrix (to make it look like the bottom line)

rounding up

19.921920682316983 15.607883029893719 12.369945347943816 9.904715485705831 8.006173113714063 5.365552456501197 3.704171008046680
20 16 13 10 9 6 4

Best Answer

a=[ 19.921920682316983 15.607883029893719 12.369945347943816 9.904715485705831 8.006173113714063 5.365552456501197 3.704171008046680 ];
b=ceil(a)
Gives:
b =
20 16 13 10 9 6 4