image thumbnail

updated 6 days ago

boundedline.m by Kelly Kearney

Plot one or more lines with a shaded boundary (can represent error, confidence intervals, etc). (so well programmed, bounds line confidenc..., potw)

image thumbnail

updated 14 days ago

Symbolic Polynomial Manipulation by John D'Errico

Symbolic polynomial manipulation as an exercise in OOP (symbolic, polynomial, arithmetic)

Sympoly_demos

adjoint(A)

consolidator(x,y,aggregation_mode,tol)

image thumbnail

updated 14 days ago

Adaptive Robust Numerical Differentiation by John D'Errico

Numerical derivative of an analytically supplied function, also gradient, Jacobian & Hessian (hessian, jacobian, toolbox)

derivest_demo

multivariable_calc_demo

derivest(fun,x0,varargin)

image thumbnail

updated 14 days ago

Variable Precision Integer Arithmetic by John D'Errico

Arithmetic with integers of fully arbitrary size. Arrays and vectors of vpi numbers are supported. (finite field, integer, biginteger)

demo_vpi

base2vpi(B,base)

bin2vpi(B)

image thumbnail

updated 14 days ago

HPF - a big decimal class by John D'Errico

High precision floating point arithmetic, a new class written in MATLAB (hpf, multiple precision, big decimal)

Demo script for my High Precision Floating point decimal

hpf_regression_testing

DefaultDecimalBase(DBaseNew)

image thumbnail

updated 2 months ago

movingstd(x,k,windowmode) by John D'Errico

A (fast) windowed std on a time series (movingavg, standard deviation, std)

movingstd(x,k,windowmode)

image thumbnail

updated 2 months ago

GPUBench by Parallel Computing Team

Compare GPUs using standard numerical benchmarks in MATLAB. (gpu, performance, benchmark)

gpuBench

gpuBench()

gpuBenchLauncher()

image thumbnail

updated 2 months ago

Separable Block-wise Operations by Matt J

Efficiently performs separable operations (e.g., sum, mean,prod, min, max,...) on array sub-blocks (blockproc, mat2cell, blocks)

X=sepblockfun(X,blockdims,fun)

image thumbnail

updated 4 months ago

quivermc by Chad Greene

Plot georeferenced vector fields with color options. (mapping toolbox, quiverm, wind)

quivermc

quivermc(lat,lon,u,v,varargin)

image thumbnail

updated 7 months ago

A suite of minimal bounding objects by John D'Errico

Suite of tools to compute minimal bounding circles, rectangles, triangles, spheres, incircles, etc. (miminum, bound, bounding)

incircle(x,y)

insphere(xyz,tri)

minboundcircle(x,y,hullflag)

image thumbnail

updated 7 months ago

"UTide" Unified Tidal Analysis and Prediction Functions by Daniel Codiga

Sea level & vector current; irregular times; confidence intervals; constituent selection diagnostics (tides, tidal currents, tidal analysis)

ut_reconstr.m

ut_solv.m

image thumbnail

updated 8 months ago

polyfitn by John D'Errico

Polynomial modeling in 1 or n dimensions (polyfit, modeling, regression)

polyfitn_demo

polydern(p,diffvar)

polyfitn(indepvar,depvar,modelterms)

image thumbnail

updated 8 months ago

SLM - Shape Language Modeling by John D'Errico

Least squares spline modeling using shape primitives (spline, splines, cubic)

slm_tutorial

hermite2slm(harray)

lse(A,b,C,d,solverflag,weights)

image thumbnail

updated 10 months ago

Clean anonymous functions of excess memory by Matt J

Tries to purge an anonymous function of non-essential workspace variables (anonymous function, memory, parfor)

fh_clean=afclean(fh)

image thumbnail

updated 12 months ago

Representing Polyhedral Convex Hulls by Vertices or (In)Equalities by Matt J

Express bounded polyhedron via equalities/inequalities or vertices. (vert2con, polyhedron, polytope)

[A,b,Aeq,beq]=vert2lcon(V,tol)

[V,nr,nre]=lcon2vert(A,b,Aeq,beq,TOL,checkbounds)

[varargout]=qlcon2vert(x0,varargin)

image thumbnail

updated 1 year ago

xy2sn by Juernjakob Dugge

Transform cartesian to curvilinear orthogonal coordinates, e.g. a flow-oriented coordinate system. (coordinate transforma..., earth science, interpolation)

sn2xy( s, n, centerlinex, centerliney, varargin )

xy2sn( x, y, centerlinex, centerliney, varargin )

image thumbnail

updated 1 year ago

FUNC2MAT: Convert linear function to matrix by Matt J

A utility to obtain the matrix representing a given linear function (linear function, matrix form, gradient)

A=func2mat(fun,Xtypical,varargin)

image thumbnail

updated 1 year ago

nearestSPD by John D'Errico

Finding the nearest positive definite matrix (positive definite mat..., covariance matrix, covariance)

nearestSPD_demo

nearestSPD(A)

image thumbnail

updated almost 2 years ago

N-dimensional sparse arrays by Matt J

Creates an N-dimensional sparse array object, for arbitrary N. (sparse, ndimensional, multidimensional)

varargout=ndstest(TOL)

ndSparse

image thumbnail

updated almost 2 years ago

distance2curve by John D'Errico

Find the closest point on a (n-dimensional) curve to any given point or set of points (nearest, closest, distance)

distance2curve(curvexy,mapxy,interpmethod)

image thumbnail

updated almost 2 years ago

GETCLIM: Suggest appropriate values for colormap limits by Andrew Davis

Determines thresholds such that 2% of data values will be mapped to the extremes of the colormap (image processing, threshold, colormap)

getclim(imdata, dataFraction)

image thumbnail

updated almost 2 years ago

Inverse (integrated) gradient by John D'Errico

Vectorized & fully sparse 1-d, 2-d, & 3-d integrated gradients (integration, cumulative, gradient)

consolidator(x,y,aggregation_mode,tol)

intgrad1(fx,dx,f1,method)

intgrad2(fx,fy,dx,dy,f11)

image thumbnail

updated 2 years ago

Inhull by John D'Errico

Efficient test for points inside a convex hull in n dimensions (convex hull, inhull, hull)

inhull(testpts,xyz,tess,tol)

image thumbnail

updated 2 years ago

IPDM: Inter-Point Distance Matrix by John D'Errico

An efficient and accurate Inter-Point Distance Matrix (distance, interpoint, distances)

demo_ipdm

ipdm(data1,varargin)

image thumbnail

updated 2 years ago

interparc by John D'Errico

Distance based interpolation along a general curve in space (interpolation, spline, linear)

interparc(t,px,py,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

The Fibonacci Sequence by John D'Errico

Efficient computation of Fibonacci and Lucas numbers (fibonacci, lucas, numbers)

fibonacciEvolution

fibonacci(n,modulus)

fibrecur(N)

image thumbnail

updated 2 years ago

FresnelS and FresnelC by John D'Errico

Efficient and accurate computation of the Fresnel sine and cosine integrals (fresnel, sine, cosine)

fresnelC(X,fresnelType)

fresnelS(X,fresnelType)

image thumbnail

updated almost 3 years ago

Split nD-array into equal sized cells by Matt J

Splits an array of any dimension into cell array of equal sized chunks. (blockproc, mat2cell, block)

outCell=mat2tiles(inArray,varargin)

image thumbnail

updated almost 3 years ago

fminsearchbnd, fminsearchcon by John D'Errico

Bound constrained optimization using fminsearch (optimization, fminsearch, constraint)

fminsearchbnd_demo

fminsearchcon_demo

[x,fval,exitflag,output]=fminsearchcon(fun,x0,LB,UB,A,b,n...

image thumbnail

updated almost 3 years ago

arclength by John D'Errico

Compute the arclength of a general curve in any number of dimensions (arclength, spline, curve)

arclength(px,py,varargin)

image thumbnail

updated almost 3 years ago

Units Conversion Toolbox by John McDermid

This toolbox attaches units to Matlab variables and enables unit conversion. (units, conversion, potw)

Adding Your Own Conversion Constants

Defining Variables and their Units

Getting Started

image thumbnail

updated almost 3 years ago

putvar, uigetvar by John D'Errico

Move (get or put) variable(s) directly between a function workspace and the base workspace (variable, assign, assignin)

putvar(varargin)

uigetvar(variableclass)

image thumbnail

updated almost 3 years ago

User Defined Constants by John D'Errico

Define your own special constants

Demo for the User Defined Constants capability in MATLAB

defcon(ConstantName,Value,Description)

image thumbnail

updated 3 years ago

Zero-Based Indexable Arrays (OOP Exercise) by Matt J

Creates arrays whose indexing starts from zero instead of one. (oop, zerobased, zero indexable)

ZeroBased

image thumbnail

updated 3 years ago

3D Rotation about Shifted Axis by Matt J

Computes/applies rotation about arbitrary 3D line. (rotation matrix, rotation, affine transform)

varargout=AxelRot(varargin)

image thumbnail

updated 3 years ago

Optimization Tips and Tricks by John D'Errico

Tips and tricks for use of the optimization toolbox, linear and nonlinear regression. (optimization, examples, tutorial)

optimtips

[x,fval,exitflag,output]=fminsearchbnd(fun,x0,LB,UB,optio...

consolidator(x,y,aggregation_mode,tol)

image thumbnail

updated 3 years ago

INTERPNS by John D'Errico

N-dimensional simplicial interpolation (interp2, interpolation, interpolant)

interpns(V,Xi,nodelist,method)

image thumbnail

updated 3 years ago

Whos by Matt J

Variant of whos(). Gives memory in Kbytes and displays array dimensions even for 4D+ arrays. (whos, memory, kilobytes)

varargout=Whos(varargin)

image thumbnail

updated almost 4 years ago

Matrix Products Expressed in Terms of Individual Operands by Matt J

A class representing products of matrices, internally storing/manipulating them separately. (oop, matrix product, product)

prodcasctest(TOL)

ProdCascade(opsequence)

image thumbnail

updated 4 years ago

Overloading SIZE for Array-like User-Defined Objects by Matt J

A tool for OOP overloading of the size() method, imitating I/O conventions of MATLAB's native SIZE. (oop, size, dimensions)

parseSize(sz,numargsout,dim)

image thumbnail

updated 4 years ago

Regular Control Point Interpolation Matrix with Boundary Conditions by Matt J

Creates Toeplitz-like matrices representing interpolation operations with edge conditions. (interpolation, spline, bspline)

Example1D

Example2D

T=interpMatrix(kernel, origin, numCtrlPoints, CtrlPointSe...

image thumbnail

updated 4 years ago

Robust Sparse data types by Matt J

Creates sparse array like MATLAB's built-in sparse type, but robust to certain bugs/errors. (sparse, patch, bug)

asgn(a1, a2)

defaultTref

defaultTref

image thumbnail

updated 4 years ago

On-The-Fly Definition of Custom Matrix Objects by Matt J

Class of matrix-like objects with on-the-fly definable methods. (oop, operator, matrix)

mobjtest(TOL)

DataObj

MatrixObj

image thumbnail

updated 4 years ago

Absolute Orientation - Horn's method by Matt J

Solves weighted absolute orientation problem using Horn's quaternion-based method. (absolute orientation, quaternion, registration)

[Bfit,report]=absorient(A,B,doScale)

[Bfit,report]=absorient(A,B,doScale)

[Bfit,report]=absorient(A,B,doScale)

image thumbnail

updated 4 years ago

spheresegmentvolume by John D'Errico

Volume of a (hyper)sphere, sphere cap, or any band through a sphere defined by two parallel planes

spheresegmentvolume(t,n,radius)

image thumbnail

updated 4 years ago

Efficient Object-Oriented Kronecker Product Manipulation by Matt J

A class for efficient manipulation of N-fold Kronecker products in terms of their operands only. (kronecker, oop, tensor)

krontest(TOL)

krontest(TOL)

KronProd

image thumbnail

updated 4 years ago

Surface Fitting using gridfit by John D'Errico

Model 2-d surfaces from scattered data (approximation, interpolation, modeling)

gridfit_demo

gridfit(x,y,z,xnodes,ynodes,varargin)

test_main.m

image thumbnail

updated 4 years ago

LSE by John D'Errico

A linear least squares solver, subject to linear equality constraints (least squares, regression, linear regression)

lse(A,b,C,d,solverflag,weights)

image thumbnail

updated 4 years ago

String subsequence tools by John D'Errico

Identify common substrings of a pair of strings

commonsubstring(str1,str2,substringlength)

substrings(str,nsub,uniqueflag)

Contact us