MATLAB: How to remove integers after the decimal points

data acquisition

Hi,
I have to remove the all integers which will come after the decimal point. e.g If A=2.789 I want answer A=2, I don't want .789 value

Best Answer

You can use floor function which rounds toward negative infinity.
A = floor(A);