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
Social Media Script 1.0
ByteScout PDF Renderer SDK 9.0.0.3079
Magento Mobile App Builder 2.0.0
Binary MLM Plan 1.0.2
Review Assistant 4.0
SSIS Data Flow Components 1.8
Maulik Shah 1.0
GetOrgChart 2.4.91
ODBC Driver for SQL Azure 2.4
EntityDAC 2.0
CarMax Clone Script 1.0
Mega Menu Magento 2 2.0
Luxand FaceSDK 6.5.1
Data Puppy Lite (64-bit) 1.0
Bytescout BarCode Reader SDK 10.1.0.1778
Top Code
Wired Ekleipo 1.0
HOW TO: Use Database and ASP Sessions to Implement ASP Security
Image Edge Detection Using Ant Colony Optimization 1.0
Flash Animated OsCommerce Templates
PHP Image Resize Script 1.0
Open Source Chat Script 1.0
Restaurant Table Booking System 2.0
Online Food Ordeing System 1.0
Ping Pong Game Code Script 1.1
MLM Software ONE 1.5.46
Magento Product Designer 1.0
Kadmos OCR/ICR engine
Aspose.Barcode for Sharepoint 1.1.0.0
Extended Kalman Filter Tracking Object in 3-D 1.0
Hotel Management - Full Board Version 6.55
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: 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);

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