image thumbnail

updated 2 days ago

pushNaNs by Daniel

Pushes NaNs to the bottom of each column of X. (nan, order, sort)

pushnans( X,truncate )

image thumbnail

updated 1 month ago

SPARSECLEAN - Efficiently cleans a sparse matrix of small values or nan by James Tursa

SPARSECLEAN cleans a double sparse matrix of small or nan values or values within a range. (sparse, clean, nan)

sparseclean(varargin)

image thumbnail

updated 2 months ago

NANCAT by Sanjay Manohar

Like CAT, but padding with NaNs. Doesn't complain if input sizes heterogeneous. Faster than CATPAD. (nan, cat, matrix)

C=nancat(DIM, varargin)

image thumbnail

updated 9 months ago

inpaint_nans by John D'Errico

Interpolates (& extrapolates) NaN elements in a 2d array. (utterly crazy memory ..., inpainting, missing values)

(nn(:,1)<1)|(nn(:,1)>n)|(nn(:,2)<1)|(nn(:,2)>m); nn(L,:)...

valid{ind}; end end

inpaint_nans_demo.m

image thumbnail

updated 9 months ago

Memory efficient nanmean function for huge dataset by Louis-Emmanuel Martinet

This is a very slightly modified version of Matlab nanmean function with much lower memory usage. (nan, nanmean, memory)

nanmean2(x,dim)

image thumbnail

updated 1 year ago

kml line plot by Cameron Sparr

Draw nan-separated lines (or a single line) onto Google Earth. (geodata, coastline, coast)

kml_line(lon, lat, varargin)

image thumbnail

updated 1 year ago

CATPAD by Jonathan Sullivan

Concatenation of arbitrarily sized data along any dimension. (cell, merge, length)

catpad.m

image thumbnail

updated 1 year ago

nancumsum by Brett Shoelson

Compute the cumulative sum of matrices, specifying the treatment of NaNs. (nan, cumulative, sum)

B=nancumsum(A,dim,nmode)

image thumbnail

updated 1 year ago

nancumprod by Brett Shoelson

Compute the cumulative product of matrices, specifying the treatment of NaNs. (nan, cumulative, prod)

B=nancumprod(A,dim,nmode)

image thumbnail

updated 1 year ago

insertNaN by Chris Miller

Used to insert NaN values into a vector or matrix given a threshold condition. (nan, mapping, plotting)

finaldata=insertNaN(data,diffthreshold)

image thumbnail

updated 1 year ago

xyimagesc.m by Anthony Bathgate

Same as imagesc but works when X and Y are not evenly spaced. (image, imagesc, imagescnan)

xyimagesc( X, Y, C, varargin )

image thumbnail

updated almost 2 years ago

gap size by Aslak Grinsted

Calculates number of consequtive NaNs in a vector. (gap, nan, length)

sz=gapsize(x)

image thumbnail

updated almost 2 years ago

Cpk capability index with NaN's by Mauro

calculates Cpk value and confidence intervall with matrices containing NaN's (cpk, nan, process)

nancpk(X,tol,dim,alpha)

image thumbnail

updated 2 years ago

MOVENAN (v1.0, mar 2011) by Jos (10584)

Move NaNs to the beginning or end of a column (matrix, manipulation, sort)

movenan (X, direction)

image thumbnail

updated 2 years ago

MATLAB Goto Statement by Husam Aldahiyat

The one and only. (goto, jump, line)

Example14

Example15

Example3

image thumbnail

updated 2 years ago

structfind by Dirk-Jan Kroon

Search for a value, cell or string inside a Matlab struct (structfind, struct, find)

index=structfind(a,field,value)

image thumbnail

updated 3 years ago

cumulative statistic with NaN's by Mauro

cumstat calculate the mean and std of an array with NaN's from 1 to n (cumulative cumulativ, statistic, mean)

nancumstat(x,dim)

image thumbnail

updated 3 years ago

DAQRESHAPE: Reshape array of triggered analog input data by Scott Hirsch

Reshape triggered data acquisition analog input data, removing NaN's. (example, application, daq)

daqtriggerreshape(data);

image thumbnail

updated 3 years ago

click2smooth.m v1.0 (Sep 2009) by Carlos Adrian Vargas Aguilera

Smooths data by clicking on the figure. (gui, signal processing, smooth)

click2smooth(varargin)

image thumbnail

updated 3 years ago

imagescnan.m v2.1 (Aug 2009) by Carlos Adrian Vargas Aguilera

Same as IMAGESC but ignores NaNs. (color freeze, surf, imagesc)

imagescnan(varargin)

image thumbnail

updated almost 4 years ago

nanderivative.m v2.1 (Jul 2009) by Carlos Adrian Vargas Aguilera

N-order derivative of vector data by interpolating nearby points, ignoring NaNs. (derivative, nan, diff)

nanderivative(Y,X,N,K,MET)

image thumbnail

updated 4 years ago

UNIQUEWITHEQUALNANS by Jos (10584)

Set unique, treating NaNs as equal (v2.0, mar 2009) (matrices, unique, sort)

uniquewithequalnans(A,varargin)

image thumbnail

updated almost 5 years ago

NANSUBSREF by Miguel

NANSUBSREF Subscripted reference, ignoring NaNs. (subsref, nan, subscripted)

B=nansubsref(A,I)

image thumbnail

updated almost 5 years ago

NaN Suite by Jan Gläscher

Descriptive Statistics for N-D matrices ignoring NaNs. (mean, sem, max)

nanmax(a,dim,b)

nanmean(x,dim)

nanmedian(x,dim)

image thumbnail

updated 5 years ago

moving_average v3.1 (Mar 2008) by Carlos Adrian Vargas Aguilera

Smooths a matrix (with/without NaN's) via recursive moving average method and eliminates data gaps. (moving average, filter2, nan)

image thumbnail

updated 5 years ago

SWIDDER virtual 2D-slider by Vassili Pastushenko

virtual 2D slider for GUI integer or float, NaN below minX, minY (data exploration, 2d slider, gui)

cheer(N)

o_o(arg)

yx=slidder(varargin)

image thumbnail

updated 5 years ago

Ignore NaN by Matt G

returns the result of the function of an array ignoring NaN elements (matrices, ignore, nan)

ignoreNaN(X,fun,dim)

image thumbnail

updated 6 years ago

Winsorize data by Dimitri Shvorob

(using PRCTILE) (winsorize, data, statistics)

winsor(x,p)

image thumbnail

updated 7 years ago

REMNAN by Karsten Shein

Removes missing values jointly from 2 vectors. (remove, nan, missing values)

remnan(x,y,t)

image thumbnail

updated 7 years ago

Cell 'Find And Replace' by Yoav Mor

Finds all occurrences of NaN in a cell array and replaces them. (structures, cell arrays, cell)

cellNaNReplace (cellData, replaceWith)

image thumbnail

updated 7 years ago

naninterp by E. Rodriguez

One dimensional Interpolation over NaNs. (holes, gap, gaps)

naninterp(X)

image thumbnail

updated 11 years ago

nancorrcoef by Denis Gilbert

Pearson's correlation for vectors with NaNs (corrcoef, correlation, pearson)

nancorrcoef(x,y)

image thumbnail

updated almost 14 years ago

lift_pen.m by Alan Bindemann

This function demonstrates how to use NaNs to "lift the pen" when using the 'line' command. (specialized, plotting, nan)

lift_pen

image thumbnail

updated 14 years ago

removeNans by Andrew Hastings

removes NaN rows and columns from data which has been interpolated. (matrices, nan, tools)

removeNaNs(ALLPLANES)

Contact us