Thread Subject: interplation problem for a 2d matrix with some null points

Subject: interplation problem for a 2d matrix with some null points

From: Ha

Date: 11 Mar, 2010 08:46:04

Message: 1 of 4


I have a table of data. The table is 2d and evenly spaced in x and y directions. However, some values of the table are lost and I must interplate using the available data points.

e.g.:
x = 1:4;
y = 1:3;
data = [ 0 1 1 2;
            inf inf 3 1;
             2 0 inf 1];

The value of null points is set to Inf.

How could I make the interplation???

Subject: interplation problem for a 2d matrix with some null points

From: Matthias

Date: 11 Mar, 2010 16:05:37

Message: 2 of 4

I think the following function does exactly what you need:
http://www.mathworks.com/matlabcentral/fileexchange/4551-inpaintnans

Matthias

Subject: interplation problem for a 2d matrix with some null points

From: Matt J

Date: 11 Mar, 2010 16:24:03

Message: 3 of 4

"Ha " <scifiles@126.com> wrote in message <hnaakc$j85$1@fred.mathworks.com>...
>
===============

This submission also has an example of recovering missing data points in 2D arrays

http://www.mathworks.com/matlabcentral/fileexchange/26292-regular-control-point-interpolation-matrix-with-boundary-conditions

Subject: interplation problem for a 2d matrix with some null points

From: Ha

Date: 12 Mar, 2010 08:08:02

Message: 4 of 4

"Matthias " <mat@elzarts.ch> wrote in message <hnb4ch$csd$1@fred.mathworks.com>...
> I think the following function does exactly what you need:
> http://www.mathworks.com/matlabcentral/fileexchange/4551-inpaintnans
>
> Matthias


Thanks, Matthias. That's great.

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
interplation Ha 11 Mar, 2010 03:49:06
matrix Ha 11 Mar, 2010 03:49:06
rssFeed for this Thread

Contact us at files@mathworks.com