The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: finding interpolated elements between 2 arrays
Replies: 6   Last Post: Mar 20, 2013 9:40 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jonathan W Smith

Posts: 90
Registered: 12/17/10
finding interpolated elements between 2 arrays
Posted: Mar 19, 2013 6:44 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Let's say I have 2 arrays, both having totally different elements. The elements in the 3rd dimension decrease exponentially with increasing n so array A has dimensions of 5x5x5 in the 3rd dimension the elements in A(:,:,1) are greater than A(:,:,2) and so on.

And same for array B which has dimensions of 5x5x3

How do I find the interpolated elements of the 3rd dimension of array B in array A? I imagine I would need to use interp3, ba_interp3 or perhaps neither.

Another way to look at it is the following if

A(1,2,:) = [900, 800, 700, 600, 500] and B(1,2,:) = [823, 689, 558] , how do I find the elements given in B in A?


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.