Integers in Matlab

Whitebread

[H]ard|Gawd
Joined
Jan 28, 2002
Messages
1,363
I've got a M-by-N matrix x declared by the dlmread command in matlab. The whole second row of the matrix contains integer values with 4 decimal places of precision (ie. 5.0000). When I call upon the second row by typing x(2,:), matlab returns 3 integers with no zeros. I need to display those 4 zeros after the decimal point as per the rules of a project. Does anyone know how to make matlab do this?
Using the format command does nor work.

Thanks.
 
That only pads the numbers with 0s to the left of the decimal point. Tried that a while ago.
 
Back
Top