MATLAB: How to interpolate column

interpolate

I have a matrix with 3 rows want to increase it to 5
how sould i do it ?
A=[1,1.2,1.4,1.6,1.8;1.3,1.6,1.7,2,2.2;1.8,2,2.5,2.6,2.7]
i want to keep the min amd max value as it is and the values in between should be interpolated

Best Answer

What about:
A = [1,1.2,1.4,1.6,1.8; ...
1.3,1.6,1.7,2,2.2; ...
1.8,2,2.5,2.6,2.7];
n = 7;
B = interp1(1:size(A, 2), A.', linspace(1, size(A, 2), n))