Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
interpolation of 3 and 4 dimensional arrays

Subject: interpolation of 3 and 4 dimensional arrays

From: Jonathan W Smith

Date: 8 Apr, 2013 11:25:10

Message: 1 of 2

Hello:

I have four 4-dimensional arrays. In each of the arrays, there is are x and y dimensions in the horizontal. The 3rd dimension for each array is the vertical. The 4th is time. The size of these dimensions are all the same: 41, 71, 8, 720.

The first array is ozone that varies with that varies horizontally and vertically with pressure. The 2nd array is a pressure array corresponding with the ozone. It shows what the pressure is in horizontally and vertically. The 3rd array is an ozone array that is a different set of ozone data that varies horizontally and vertically. The 4th array is the corresponding pressure array.

o3_a(:,:,:,:)
p_a(:,:,:,:)
o3_b(:,:,:,:)
p_b(:,:,:,:)

The question is: How can I find out how o3_a corresponds with the pressure levels in p_b? Do I need to interpolate? How do interpolate arrays like these?

Thanks
Jonathan

Subject: interpolation of 3 and 4 dimensional arrays

From: dpb

Date: 8 Apr, 2013 15:35:13

Message: 2 of 2

On 4/8/2013 6:25 AM, Jonathan W Smith wrote:
> Hello:
>
> I have four 4-dimensional arrays. In each of the arrays, there is are x
> and y dimensions in the horizontal. The 3rd dimension for each array is
> the vertical. The 4th is time. The size of these dimensions are all the
> same: 41, 71, 8, 720.
>
> The first array is ozone that varies with that varies horizontally and
> vertically with pressure. The 2nd array is a pressure array
> corresponding with the ozone. It shows what the pressure is in
> horizontally and vertically. The 3rd array is an ozone array that is a
> different set of ozone data that varies horizontally and vertically. The
> 4th array is the corresponding pressure array.
>
> o3_a(:,:,:,:)
> p_a(:,:,:,:)
> o3_b(:,:,:,:)
> p_b(:,:,:,:)
>
> The question is: How can I find out how o3_a corresponds with the
> pressure levels in p_b? Do I need to interpolate? How do interpolate
> arrays like these?

doc interpn % for starters...

--

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us