image thumbnail

updated 1 month ago

repnan by Chad Greene

Replace NaNs in a 1D array by interpolation (interpolation, nan, nans)

repnan documentation

repnan(x,method)

image thumbnail

updated 1 month ago

stat by Chad Greene

Get a quick summary of variable statistics in the command window. (who, whos, min)

stat

stat(variable)

image thumbnail

updated 1 month ago

Reshape triggered data acquisition analog input data by Michelle Hirsch

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

daqtriggerreshape(data)

image thumbnail

updated 2 months 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 5 months ago

nantight by Chad Greene

Sets axis limits to the range of finite data. (nan, axis, axis tight)

nantight

nantight(h)

image thumbnail

updated 6 months ago

nanfillts by Oleg Komarov

Fill consecutive NaNs with last available value (time series, fill, nan)

image thumbnail

updated 7 months ago

replacefartherthan by Chad Greene

Replace or delete values in a surface farther than a given distance from points. (griddata, nan, distance)

replacefartherthan

replacefartherthan.m

image thumbnail

updated 8 months ago

ndwmean by Russell

Up to n-dimensional weighted mean or average of an array with NaN support (weighted mean, weighted sum, weighted average)

ndwmean(array,weights,directions)

image thumbnail

updated 9 months 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 1 year ago

Max and min keeping NaNs by David Young

The max and min functions ignore NaN values. These functions keep them like arithmetic functions do. (max, min, maximum)

maxNan(a, b, dim)

minNan(a, b, dim)

image thumbnail

updated 1 year ago

Trim array by Guilherme Coco Beltramini

Remove columns and rows that are empty or that contain only NaN's in the input arrays (trim, array, nan)

trim_array(action,varargin)

image thumbnail

updated 1 year ago

nanconv by Benjamin Kraus

Convolution in 1D or 2D ignoring NaNs and (optionally) correcting for edge effects. (conv, conv2, nan)

nanconv(a, k, varargin)

image thumbnail

updated 1 year ago

nantowhite by Benjamin Kraus

Convert a 2D matrix into an image with NaNs replaced by white (image, imagesc, colormap)

nantowhite(cvals, clim, cmap)

image thumbnail

updated 1 year ago

nanconvn by Benjamin Kraus

Convolution in ND ignoring NaNs and (optionally) correcting for edge effects. (conv, conv2, convn)

nanconvn(a, k, varargin)

image thumbnail

updated 1 year ago

pushNaNs by Daniel

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

pushnans( X,truncate )

image thumbnail

updated almost 2 years 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 almost 2 years 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 2 years ago

inpaint_nans by John D'Errico

Interpolates (& extrapolates) NaN elements in a 2d array. (nan, inpainting, replace)

(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 2 years 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 3 years ago

CATPAD by Jonathan Sullivan

Concatenation of arbitrarily sized data along any dimension. (add, cat, length)

catpad.m

image thumbnail

updated 3 years 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 3 years 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 3 years ago

gap size by Aslak Grinsted

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

sz=gapsize(x)

image thumbnail

updated 3 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.m

image thumbnail

updated almost 4 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 almost 4 years ago

MATLAB Goto Statement by Husam Aldahiyat

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

Example14

Example15

Example3

image thumbnail

updated almost 4 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 almost 5 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 5 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 5 years ago

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

Same as IMAGESC but ignores NaNs. (specialized, plotting, imagesc)

imagescnan(varargin)

image thumbnail

updated 5 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. (approximation, interpolation, diff)

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

image thumbnail

updated 5 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 6 years ago

NANSUBSREF by Miguel

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

image thumbnail

updated 6 years ago

NaN Suite by Jan Gläscher

Descriptive Statistics for N-D matrices ignoring NaNs. (statistics, probability, nan)

nanmax.m

nanmean.m

nanmedian.m

image thumbnail

updated almost 7 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. (filter design, filter analysis, moving average)

moving_average.m

moving_average2.m

nanmoving_average.m

image thumbnail

updated almost 7 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 7 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 7 years ago

Winsorize data by Dimitri Shvorob

(using PRCTILE) (statistics, probability, winsorize)

image thumbnail

updated 8 years ago

REMNAN by Karsten Shein

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

image thumbnail

updated 8 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)

image thumbnail

updated 9 years ago

naninterp by E. Rodriguez

One dimensional Interpolation over NaNs. (matrices, nan, nans)

naninterp(X)

image thumbnail

updated 13 years ago

nancorrcoef by Denis Gilbert

Pearson's correlation for vectors with NaNs (statistics, probability, nan)

nancorrcoef(x,y)

image thumbnail

updated 15 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)

image thumbnail

updated almost 16 years ago

removeNans by Andrew Hastings

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

Contact us