Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
VB.Net PDF 4.4.7
SuiteCRM Survey Rocket Plugin 1.0
Airbnb Clone Script | Airbnb Clone 4.3.1
IP2Location Geolocation Database 2018
ODBC Driver for Salesforce 1.5
Rapid PHP 2018 15.0
Bytescout BarCode Generator SDK 4.70.0.981
Data Puppy Lite (32-bit) 1.0
ProZ clone script 1.0.3
VideoCap Live Streaming SDK ActiveX 8.5
Magento Web to Print 1.0
dbForge Data Compare for MySQL 5.4
dbForge Query Builder for MySQL 4.3
ODBC Driver for NetSuite 1.2
Rapid CSS 2018 15.0
Top Code
Mann-Kendall Tau-b with Sen's Method (enhanced) 1.0
Online Food Ordeing System 1.0
OpenCV Delphi wrapper 1.0
Etsy Clone Script v 2.0
Fuzzy k means 1.0
Low Pass Butterworth Filter 1.0
ABBYY FineReader Engine 9.0
Advanced Forced Matrix Script 1.0
Feed The Snake 1.3
OpenELD 1.0
BMI Calculator Widget 1.3
Pro MLM 1
Dione Card Validator 1.0.2
ECG Beat Calculation 1.0
Test and Measurement Widgets 1.0
Top Rated
Output Messenger 1.8.0
Aliexpress Clone- Ec21 Script 1
Indiegogo Clone 3.0
Online Food Ordeing System 1.0
PHP Image Resize Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
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: 3
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);

Notes:
-----
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.

Example:
--------
%% ---- 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')
subplot(223)
hsurfaces = slice(x,y,z,vel0,[xmin,100,xmax],ymax,zmin);
set(hsurfaces,'FaceColor','interp','EdgeColor','none')
hcont = contourslice(x,y,z,vel0,[xmin,100,xmax],ymax,zmin);
set(hcont,'EdgeColor',[.7,.7,.7],'LineWidth',.5)
view(3), daspect([2,2,1]), axis tight
title('Original data compared with...')
subplot(224)
hsurfaces = slice(x,y,z,vel,[xmin,100,xmax],ymax,zmin);
set(hsurfaces,'FaceColor','interp','EdgeColor','none')
hcont = contourslice(x,y,z,vel,[xmin,100,xmax],ymax,zmin);
set(hcont,'EdgeColor',[.7,.7,.7],'LineWidth',.5)
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: 3



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