image thumbnail

updated 16 days ago

nanfillts by Oleg Komarov

Oleg Komarov (view profile)

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

image thumbnail

updated 1 month ago

repnan(r,varargin) by Roohollah Kalatehjari

Replace NaN values by arbitrary number (nan, value, matrix)

repnan(r,varargin)

image thumbnail

updated 7 months ago

nanpolyarea(x,y) by Bas Altena

Calculate the area of polygons, separated by NaN's (polygons, area, nan)

nanpolyarea(x,y)

image thumbnail

updated 10 months ago

repnan by Chad Greene

Chad Greene (view profile)

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

repnan documentation

repnan(x,method)

image thumbnail

updated 10 months ago

stat by Chad Greene

Chad Greene (view profile)

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

stat

stat(variable)

image thumbnail

updated 10 months 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 11 months ago

nancumprod by Brett Shoelson

Brett Shoelson (view profile)

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

nancumprod(A,dim,nmode)

image thumbnail

updated 1 year ago

nantight by Chad Greene

Chad Greene (view profile)

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

nantight

nantight(h)

image thumbnail

updated 1 year ago

replacefartherthan by Chad Greene

Chad Greene (view profile)

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

replacefartherthan

replacefartherthan.m

image thumbnail

updated 1 year ago

ndwmean by Russell

Russell (view profile)

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 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 1 year ago

Max and min keeping NaNs by David Young

David Young (view profile)

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

pushNaNs by Daniel

Daniel (view profile)

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

pushnans( X,truncate )

image thumbnail

updated 2 years ago

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

James Tursa (view profile)

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

nancat(DIM, varargin)

image thumbnail

updated 3 years ago

inpaint_nans by John D'Errico

John D'Errico (view profile)

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

inpaint_nans(A,method)

inpaint_nans_bc(A,method,bcclass)

inpaint_nans_demo_old.m

image thumbnail

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

CATPAD by Jonathan Sullivan

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

catpad.m

image thumbnail

updated almost 4 years ago

nancumsum by Brett Shoelson

Brett Shoelson (view profile)

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

nancumsum(A,dim,nmode)

image thumbnail

updated almost 4 years ago

insertNaN by Chris Miller

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

insertNaN(data,diffthreshold)

image thumbnail

updated 4 years ago

gap size by Aslak Grinsted

Aslak Grinsted (view profile)

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

gapsize(x)

image thumbnail

updated 4 years ago

Cpk capability index with NaN's by Mauro

Mauro (view profile)

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

nancpk.m

image thumbnail

updated 4 years ago

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

Jos (10584) (view profile)

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

movenan

image thumbnail

updated 4 years ago

MATLAB Goto Statement by Husam Aldahiyat

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

Example14

Example15

Example3

image thumbnail

updated 4 years ago

structfind by Dirk-Jan Kroon

Dirk-Jan Kroon (view profile)

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

structfind(a,field,value)

image thumbnail

updated 5 years ago

cumulative statistic with NaN's by Mauro

Mauro (view profile)

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

UNIQUEWITHEQUALNANS by Jos (10584)

Jos (10584) (view profile)

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

uniquewithequalnans(A,varargin)

image thumbnail

updated 7 years ago

NANSUBSREF by Miguel

Miguel (view profile)

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

nansubsref(A,I)

image thumbnail

updated 7 years ago

NaN Suite by Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 109 downloads
  • 4.82353

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

nanmax.m

nanmean.m

nanmedian.m

image thumbnail

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

bip(pib)

cheer(N)

slidder(varargin)

image thumbnail

updated 8 years ago

Ignore NaN by Matt G

Matt G (view profile)

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

ignoreNaN(X,fun,dim)

image thumbnail

updated 8 years ago

Winsorize data by Dimitri Shvorob

(using PRCTILE) (statistics, probability, winsorize)

winsor.m

image thumbnail

updated 9 years ago

REMNAN by Karsten Shein

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

remnan(x,y,t)

image thumbnail

updated 9 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

image thumbnail

updated almost 10 years ago

naninterp by E. Rodriguez

E. Rodriguez (view profile)

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

naninterp(X)

image thumbnail

updated almost 14 years ago

nancorrcoef by Denis Gilbert

Denis Gilbert (view profile)

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

nancorrcoef(x,y)

image thumbnail

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

removeNans by Andrew Hastings

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

removeNaNs(ALLPLANES)

Contact us