MATLAB: Truncating fractions

fractionstruncate

If A I have like this
>> A=[0.0001 -0.0012 1.0005 0.0040 1.4125]
A =
0.0001 -0.0012 1.0005 0.0040 1.4125
I want to have A values like this
0.00 0.00 1.00 0.00 1.41
How to do in MATLAB ?

Best Answer

Ar = round(A*100)/100
.
.
.
EDIT
Raviteja, the above command does store your values as you want. The problem is not with the values, but with how the values are displayed in MATLAB. You cannot make MATLAB display the values in just any way you want. The closest you can get is:
format bank
Ar = round(A*100)/100
Ab = abs(A) %This looks like what you want, but the full value is there.