Thread Subject: c coded interp3

Subject: c coded interp3

From: Mehmet OZTURK

Date: 28 Feb, 2008 08:01:05

Message: 1 of 3

I'm working on large 3D data sets and i need to interpolate
data on some regular grid. With interp3, my computer hangs
because of vectorized nature of interp3. I tired to use
interp3 in a loop to avoid more memory need but it is stil
too slow. So i have to code interp3 in c or c++ but
unfortunately i'm not good at that language. If anyone has
mex format of interp3 or again a mex format of a trilinear
interpolation function?

Subject: c coded interp3

From: Ashish Uthama

Date: 29 Feb, 2008 17:54:48

Message: 2 of 3

> my computer hangs
> because of vectorized nature of interp3.

Why do you think vectorization is the cause?

Would partitioning the data into overlapping cubes help you?

How do you plan to reduce the memory required by coding in C/C++?
(Other than reading the data in sequentiall, since this can be done in
MATLAB itself)


On Thu, 28 Feb 2008 03:01:05 -0500, Mehmet OZTURK
<mehmetozturk@mathworks.com> wrote:

> I'm working on large 3D data sets and i need to interpolate
> data on some regular grid. With interp3, my computer hangs
> because of vectorized nature of interp3. I tired to use
> interp3 in a loop to avoid more memory need but it is stil
> too slow. So i have to code interp3 in c or c++ but
> unfortunately i'm not good at that language. If anyone has
> mex format of interp3 or again a mex format of a trilinear
> interpolation function?

Subject: c coded interp3

From: Mehmet OZTURK

Date: 1 Mar, 2008 12:02:01

Message: 3 of 3

I think vectorized interp3 reads all data in double format
and causes memory error. I tried to read data in a format of
sequantial planes instaed of overlapping cubes. This method
is also as slow as reading data in sequential vectores.
Anyway, i plan to use interp3 in a loop but to avoid
overhead time consumed by interp3.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
mex Mehmet OZTURK 28 Feb, 2008 03:01:46
interp3 Mehmet OZTURK 28 Feb, 2008 03:01:46
trilinear Mehmet OZTURK 28 Feb, 2008 03:01:46
rssFeed for this Thread

Contact us at files@mathworks.com