Let's say I have a 3-by-3 matrix of the following values in Matlab:
A = [1 3 5; 3 5 7; 5 7 9];
How can I interpolate my matrix for example to be:
A = [1 2 3 4 5; 2 3 4 5 6; 3 4 5 6 7; 4 5 6 7 8; 5 6 7 8 9];
So in this case all the integer "between values" were added in the matrix. How can I do this in the general case with chosen precision? For example If my matrix is again:
A = [1 3 5; 3 5 7; 5 7 9];
How can I interpolate A to be:
A = [1 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3 3.2 .........4.8 5; 1.2 1.4 1.6 1.8 2.0 .......... 5.2; 1.4 1.6 .... etc. ];
Hope my question is clear =) I want to interpolate the "between values" with chosen precision, both in X and Y direction.
I came across with interp2-function, but I'm not sure how to use it and thought If someone familiar with this problem could tell the answer faster =)
Thank you any help!