Code Directory
 Visual Basic & VB.NET
New Code
.Net Runtime Library for Delphi
Scimbo 1.64
AnyMap JS Maps 8.4.2
GetOrgChart 2.5.3
AnyChart JS Charts and Dashboards 8.4.2
OrgChart JS 3.8.0
dbForge Compare Bundle for MySQL 8.1
dbForge Search for SQL Server 2.3
Database Workbench Pro 5.5.0
Luxand FaceSDK 7.0
SSIS Data Flow Components 1.10
Entity Developer Professional 6.3
dbForge Index Manager for SQL Server 1.9
dbForge Data Generator For MySQL 2.2
Magento Australia Post eParcel Extension 1.0
Top Code
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Betting system 6.x-1.x-dev
Java-2-Pseudo 1.0
Faculty Evaluation System 1.1
MLM Forced Matrix Plan Software 1.0.2
Online Car Rental Management Software Solution Alpha
Library Management System 1.0
Aspose.Words for Java
Russian Roulette
soccerbet 1.0
Cuckoo Search (CS) Algorithm 1.0
Student Information Management System 1.0
Java/RTR 1.0
JEDI Database Desktop 27012002
PHP Point of sale 10.0
Top Rated
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
PHP Digital Download Script 1.0.4
Inpaint over missing data in N-D arrays 1.0
File ID: 82230

Inpaint over missing data in N-D arrays 1.0
Download Inpaint over missing data in N-D arrays 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 4
Submit Rating:
Inpaint over missing data in N-D arrays 1.0 Description
Description: Y = INPAINTN(X) replaces the missing data in X by extra/interpolating the non-missing elements. The non finite values (NaN or Inf) in X are considered as missing data. X can be any N-D array.

Important note:
INPAINTN uses an iterative process that converges toward the solution. Y = INPAINTN(X,N) uses N iterations. By default, N = 100. If you estimate that INPAINTN did not totally converge, then increase N: Y = INPAINTN(X,1000);

INPAINT_NANS and INPAINT_NANS3 are faster than INPAINTN when the number of NaN elements is (relatively) small. However, because INPAINT_NANS and INPAINT_NANS3 both involve huge matrices, they can be limited with large datasets.

%% ---- 3-D data ---- %%
load wind
xmin = min(x(:)); xmax = max(x(:));
zmin = min(z(:)); ymax = max(y(:));
%-- wind velocity
vel0 = interp3(sqrt(u.^2+v.^2+w.^2),1,'cubic');
x = interp3(x,1); y = interp3(y,1); z = interp3(z,1);
%-- remove randomly 90% of the data
I = randperm(numel(vel0));
velNaN = vel0;
velNaN(I(1:round(numel(I)*.9))) = NaN;
%-- inpaint using INPAINTN
vel = inpaintn(velNaN);
%-- display the results
subplot(221), imagesc(velNaN(:,:,15)), axis equal off
title('Corrupt plane, z = 15')
subplot(222), imagesc(vel(:,:,15)), axis equal off
title('Reconstructed plane, z = 15')
hsurfaces = slice(x,y,z,vel0,[xmin,100,xmax],ymax,zmin);
hcont = contourslice(x,y,z,vel0,[xmin,100,xmax],ymax,zmin);
view(3), daspect([2,2,1]), axis tight
title('Original data compared with...')
hsurfaces = slice(x,y,z,vel,[xmin,100,xmax],ymax,zmin);
hcont = contourslice(x,y,z,vel,[xmin,100,xmax],ymax,zmin);
view(3), daspect([2,2,1]), axis tight
title('... reconstructed data')

License: Shareware

Related: inpaintnvelnan, inpaint, Display, results, Equal, imagescvelnan, subplot, velnani roundnumeli, velnan

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 4

More Similar Code

MULTIPROD is a powerful, quick and memory efficient generalization for N-D arrays of the MATLAB matrix multiplication operator (*). While the latter works only with 2-D arrays, MULTIPROD works also with multidimensional arrays.
MULTIPROD performs multiple multiplications between matrices, vectors, or scalars contained in two multidimensional arrays, with automatic virtual array expansion (AX) enabled. AX allows you, for instance, to...

Normalizes N-D vectors provided either in one matrix, or as multiple component matrices.
NORMVEC normalize vector(s).
NORMVEC computes the unit vectors in the direction of the vectors
provided. It can process two types of...

While interpolation functions are available builtin in MATLAB, it requires data in specified griddata format. Consider sampling data from an experiment and you are missing some points and you don't want to repeat the experiment but require data at...

Displaying Cached XML Data in a DataGrid, and Intelligently Refreshing the Data is an article in which author discusses about the process of displaying the XML document, which is stored in the cache memory. In this article the author explains...

if you are using this way Nested Set Model to manage hierarchical data in MySQL this class will help you with it

This webinar focuses on strategies and techniques for handling large amounts of data in MATLAB, including:

d-deD? Understanding memory and its constraints
d-deD? Maximizing system resources
d-deD? Minimizing your memory...

SMOOTHN provides a fast, unsupervised and robust discretized spline smoother for data of any dimension.

SMOOTHN(Y) automatically smoothes the uniformly-sampled array Y. Y can be any N-D noisy array (time series, images, 3D data,...).

This little package contains a Parzen Neural Network classifier that can classify data between N classes in D dimensions. The classifier is really fast and simple to learn. The good classification performance can be obtained for a certain class of...

MATLABs most commonly used 3-d plotting tools surf and mesh require rectangular grids to plot in 3-d, not x,y,z triples. This function converts arrays of x,y,z triples into rectangular grids to use with surf, mesh, etc.

common usage:

FFNDGRID grids unevenly spaced data.

This is a generalization of FFGRID applicable to N-D data. FFNDGRID may also be used to generate N-dimensional histograms or densityplots.

This is very useful when dealing with data which...

User Review for Inpaint over missing data in N-D arrays
- required fields

Please enter text on the image