You've turned on the 'bank' display format. That displays a double or single precision array with 2 decimal places regardless of whether it contains integer values or non-integer values.
format % short
A = ones(2) % no decimal places, none required to display A's contents
Best Answer