I have a latitude x longitude matrix with data points at 0 ,1, 2, 3, 4....etc along Y direction(ie latitude ) and 0,1.25,2.5,3.75.....along X direction (longitude) and i need a matrix with data at points 0, 2.5, 5...etc both in X and Y direction.

when tried interp2 with X=0:1:40

and Y=0:1.25:44.25

and Z=data i have(41x35 matrix)

it came that X and Y must have same size as Z

Please Help.

Thanks for your time

Anila

==============

I'll ask the obvious question. Why do you have X and Y which do not agree in size with Z?

well... what a surprise...

show CSSM the syntax of your call to INTERP2...

us

This is the syntax

a=meshgrid(0:40);

b=meshgrid(58.75:1.25:101.25);

c=load(fgy);

ai=0:2.5:40;

bi=60:2.5:100;

ci=interp2(a,b,c,ai,bi);

Thanks

Anila

because the matrix has 41 rows and 35 columns

so i took x=meshgrid(0:1:40)

and y=(0:1.25:44.25)

Anila

1. interpolating 2d data on 2d polar structured grid

2. How to manipulate matrix dimension (2D->3D and 3D->2D)?

3. Creating a 2D Matrix of Text Boxes as a 2D Control Array

4. how to break a big column matrix into 2d matrix?

5. how can i convert a 2D matrix to a 3D matrix

6. How to read in 2D matrix from a 3D matrix in Simulink?

7. Indexing a 2D matrix into a 3D matrix help

8. reorder a 2d matrix based on [a b]=sort of a different matrix

9. transformation same matrix 2d to 1 matrix 3d

10. convert long 2D matrix into a 3D matrix

11. conversion of 3d matrix to 2d matrix

12. Creating 2D RGB matrix from 3D RGB matrix(Color Image Representaion)

13. optimization of axis breakpoints of linearly interpolated 1D and 2D data maps

14. one pixel shift in 2D sinc interpolated image

15. interpolate 2 rows from a 2d array

5 post • Page:**1** of **1**