Possible Duplicate:
Is it possible to show numbers in non-engineering format in MATLAB?
I noticed when applying my normalization method below:
%# get max and min of spreadsheet(494021x42)
maxM = max(M(:)) %# Max = 693375640
minM = min(M(:)) %# Min = 0
%# normalize to -1...1
Mnormalize = ((M-minM)./(maxM-minM) - 0.5 ) *2;
That when I try to de-normalize with the below method:
%# to "de-normalize", apply the calculations in reverse
vec = (Mnormalize./2+0.5) * (maxM-minM) + minM
I dont quite get the correct answers back, below is the original spreadsheet snippet picture:

and here is the de-normalized snippet:

Notice how its almost the exact same except for column six, for some reason the output is placing the decimal in the wrong place.
So my questions is:
1) How do I fix column 6
and an extra question is:
2) how do I remove trailing zeros
To remove the trailing zeros, use ROUND.
To learn more about floating point issues, read this