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:
interpft for 3D array

Subject: interpft for 3D array

From: Jonathan W Smith

Date: 19 Mar, 2013 11:25:07

Message: 1 of 2

Hello:
I have the following array:
testing1 = fix(10*rand(165,332,27));
I use interpft to change the first and 2nd dimensions of this array
new1 =interpft(testing1,164);
new2 = interpft(new1,283,2);

When use the following command to interpolate the 3rd dimension:

new3 = interpft(new2,27,3)

But the size of new3 is the following:

46412 1 7

How do I interpolate the 3rd dimension of the array without the dimension size of the first 2 dimensions multiplying themselves by each other. Thanks

Jonathan

Subject: interpft for 3D array

From: dpb

Date: 19 Mar, 2013 13:41:39

Message: 2 of 2

On 3/19/2013 6:25 AM, Jonathan W Smith wrote:
> Hello:
> I have the following array:
> testing1 = fix(10*rand(165,332,27));
> I use interpft to change the first and 2nd dimensions of this array
> new1 =interpft(testing1,164);
> new2 = interpft(new1,283,2);
>
> When use the following command to interpolate the 3rd dimension:
>
> new3 = interpft(new2,27,3)
>
> But the size of new3 is the following:
>
> 46412 1 7
>
> How do I interpolate the 3rd dimension of the array without the
> dimension size of the first 2 dimensions multiplying themselves by each
> other. Thanks

In a quick check here, it appears if you

reshape(new3,164,283,3)

the resulting storage order is consistent w/ the previous.

--

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