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

New to MATLAB?

Thread Subject:
inpaint nans and missing data.

Subject: inpaint nans and missing data.

From: nman2084

Date: 22 Dec, 2011 16:31:08

Message: 1 of 1

spX = linspace(c.minX, c.maxX);
spY = linspace(c.minY, c.maxY);
[xC,yC] = meshgrid(spX,spY);

zC = bin2mat(c.x,c.y,c.z,xC,yC);
rC = bin2mat(c.x,c.y,c.r,xC,yC);
gC = bin2mat(c.x,c.y,c.g,xC,yC);
bC = bin2mat(c.x,c.y,c.b,xC,yC);

zCi = inpaint_nans(zC);
rCi = inpaint_nans(rC);
gCi = inpaint_nans(gC);
bCi = inpaint_nans(bC);

How do i get back to original data (struct c) and insert the missing points which were added through inpaint_nans.

Tags for this Thread

No tags are associated with 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