image thumbnail

updated 17 days ago

The X Collection by Yvan Lengwiler

Collection of programs that ease interaction with Excel files. (excel, activex, data import)

XAddSheet(hBook,strName,hAfterSheet)

XCloseAllBooks(hExcel)

XCloseBook(hBook)

image thumbnail

updated 25 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 25 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 25 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 25 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 4 months ago

Import PWT Version 8.0 by Yvan Lengwiler

Downloads the 'Penn World Table' from the web and places the information into a Matlab variable. (economics, database, macroeconomics)

ImportPWT(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 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 9 months ago

Pareto Set by Yi Cao

find the pareto set from n points with k objectives (optimization, multiobjective optimi..., pareto set)

membership=paretoset(X)

paretoset_examples.m

image thumbnail

updated 9 months ago

Straightforward COPY and PASTE functions by Yvan Lengwiler

Allows very simple manual exchange with other applications through the clipboard. (data import, data export, clipboard)

copy(x,dec,sep,lf)

paste(dec,sep,lf)

image thumbnail

updated 11 months ago

Conjugate Gradient Method by Yi Cao

Conjugate Gradient Method to solve a system of linear equations (mathematics, linear algebra, linear equation)

conjgrad(A,b,tol)

image thumbnail

updated 1 year ago

Bivariant Kernel Density Estimation (V2.1) by Yi Cao

A tool for bivariant pdf, cdf and icdf estimation using Gaussian kernel function. (statistics, probability, bivariant gaussian ke...)

Bivariate Kernel Density Estimation Demonstration

gkde2.m

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

LAPJV - Jonker-Volgenant Algorithm for Linear Assignment Problem V3.0 by Yi Cao

A Matlab implementation of the Jonker-Volgenant algorithm solving LAPs. (linear assignment pro..., linear assignment pro..., optimization)

lapjv(costMat,resolution)

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

Improvd downward branch and bound algorithm for regression variable selection by Yi Cao

Improved downward branch and bound to select the best subset for least squares regression problems. (optimization)

bbdireg(Y,X,n,nc)

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

getxls by Yvan Lengwiler

GETXLS is a GUI that allows you to easily transfer data from an Excel file into Matlab's workspace. (gui, data import, excel)

getxls(style)

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

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

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

Hungarian Algorithm for Linear Assignment Problems (V2.3) by Yi Cao

An extremely fast implementation of the Hungarian algorithm on a native Matlab code. (optimization, munkres algorithm, hungarian algorithm)

munkres(costMat)

image thumbnail

updated 3 years ago

MPC Tutorial III: MPC in Simulink V2 by Yi Cao

A tutorial on using MPC in Simulink. (tutorial, mpc, simulink)

mpcsimulink

mpcsfunc(t,z,y,flag,A,B,C,D,P,M,Q,R,Ts)

mpcdss

image thumbnail

updated 3 years ago

MPC Tutorial IV - State Space MPC with input increment by Yi Cao

functions and simulink block implement state space MPC using input increment (control design, optimization, simulink)

State Space MPC with input increment Tutorial

mpcsimulink

f=mpcsetup(A,B,C,D,hP,hM,Q,R,x0,u0)

image thumbnail

updated 3 years ago

MPC Tutorial II: Multivariable and State Space MPC V2.0 by Yi Cao

A tool and tutorial for multivariable state space MPC (model predictive cont..., general predictive co..., receding horizon)

State Space MPC Tutorial

f=mpcsetup(A,B,C,D,p,m,Q,R,x0,u0)

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

Learning the Kalman Filter in Simulink v2.1 by Yi Cao

A Simulink model to learn the Kalman filter for Gassian processes. (filter design, filter analysis, kalman filter)

Learning the Kalman Filter in Simulink Examples

kalmanfilte_r14r

image thumbnail

updated almost 4 years ago

Learning the Kalman Filter: A Feedback Perspective by Yi Cao

A feedback view of Kalman filter to gain more useful insights. (filter design, filter analysis, kalman filter)

Learning the Kalman Filter: a Feedback Perspective

KFgain

KalmanLTI

image thumbnail

updated 4 years ago

Learning the Unscented Kalman Filter by Yi Cao

An implementation of Unscented Kalman Filter for nonlinear state estimation. (filter design, filter analysis, kalman filter)

[x,P]=ukf(fstate,x,P,hmeas,z,Q,R)

image thumbnail

updated 4 years ago

Patch color selector by Yi Cao

Selecting colors for a number of patches to avoid neighboring patches with the same color. (color patches, data exploration)

pcsel( centers, ncolor )

image thumbnail

updated 4 years ago

lscatter : scatter plot with labels instead of markers by Yvan Lengwiler

Similar to ML's scatter command, but allows you to use separate labels for each point. (scatter, plot, figure)

lscatter(x,y,l,varargin)

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

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

Gini coefficient and the Lorentz curve by Yvan Lengwiler

Computes the Gini coefficient and the Lorentz curve of weighted data. (distribution, inequality, statistics)

gini(pop,val,makeplot)

image thumbnail

updated 4 years ago

WHO for a given CLASS by Yvan Lengwiler

Displays a list of variables in the base workspace of a given class. (utility)

whoclass(varargin)

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)

image thumbnail

updated 4 years ago

XLSrange by Yvan Lengwiler

The function returns the range address as used by Excel. It is useful in connection with XLSWRITE. (excel, data export)

XLSrange(sizeofarray, topleft)

image thumbnail

updated 4 years ago

Efficient K-Nearest Neighbor Search using JIT by Yi Cao

A small but efficient tool to perform KNN search (statistics, probability, knearest neighbors)

[idx,D]=knnsearch(varargin)

image thumbnail

updated 4 years ago

Probability Density Function (PDF) Estimator (V3.2) by Yi Cao

An estimate of probability density function of the given random data with bounded support. (statistics, probability, probability density f...)

Gaussian Kernel Density Estimation Demonstration

p=gkdeb(x,p)

Contact us