image thumbnail

updated 15 days ago

export_fig by Oliver Woodford

Exports figures nicely to a number of vector & bitmap formats. (jpeg, anti alias, marker size)

image thumbnail

updated 19 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 19 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 19 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 19 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 21 days ago

SC - powerful image rendering by Oliver Woodford

Useful tool for rendering and outputting information rich images (colormap, render, color)

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 6 months ago

real2rgb & colormaps by Oliver Woodford

Converts intensity matrices into truecolor images. (truecolor, colormap, sepia)

autumn(varargin)

bled(varargin)

bone(varargin)

image thumbnail

updated 6 months ago

imdisp by Oliver Woodford

Display multiple images as a montage of subplots (gui, image processing, figure)

imdisp(I, varargin)

image thumbnail

updated 6 months ago

IM2GIF by Oliver Woodford

Converts a multiframe image to an animated GIF. (image, multiframe, animated)

im2gif(A, varargin)

image thumbnail

updated 6 months ago

append_pdfs by Oliver Woodford

Append/concatenate multiple PDF files into a single file using Ghostscript. (concatenate, append, pdf)

append_pdfs(varargin)

ghostscript(cmd)

user_string(string_name, string)

image thumbnail

updated 6 months ago

Batch Job by Oliver Woodford

Toolbox to spread batch work over multiple MATLAB instances, even on other PCs (batch, batch processing, parfor)

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

Bitcount & bitwise hamming distance by Oliver Woodford

Count the set bits in vectors, and compute bitwise hamming distances between sets of vectors (bit, bitwise, hamming)

bitcount(A)

bitwise_hamming(A, B)

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

MATLAB xUnit Test Framework by Steve Eddins

MATLAB xUnit is a unit test framework for MATLAB code. (mtest, unit test, xunit)

MATLAB xUnit Test Framework: Architectural Notes

MATLAB xUnit Test Framework: How RUNTESTS Searches for Te...

MATLAB xUnit Test Framework: How to Put Multiple Test Cas...

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

Figure control widget by Oliver Woodford

Intuitive manipulation of a figure using key and mouse gestures (gui, figure, manipulate)

camview(varargin)

fcw(fig, butt)

image thumbnail

updated almost 2 years ago

maximize by Oliver Woodford

Platform independent function to maximize a figure window. (maximize, figure, maximize figure)

maximize(hFig)

image thumbnail

updated almost 2 years ago

Example MATLAB class wrapper for a C++ class by Oliver Woodford

An example of how to safely encapsulate a C++ class in a MATLAB class, via a mex interface. (c, mex, wrapper)

class_interface

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

N_PERMUTE_K by Matt Fig

All possible permutations of the elements of set N, taken K at a time, with repetition. (permutations, combinations, multisets)

npermutek(N,K)

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

camview by Oliver Woodford

Get and set full figure view parameterization, and use a camera projection matrix to set the view. (figure, view, camera)

camview(varargin)

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

MATLABTETRIS by Matt Fig

Another MATLAB version of the classic game, Tetris. (tetris, gui, game)

matlabtetris(varargin)

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

vol3d v2 by Oliver Woodford

3-d volume (voxel) rendering (volume viewer, voxel, volume)

vol3d(varargin)

image thumbnail

updated 3 years ago

LINECMENU by Matt Fig

Utility for creating a standard uicontextmenu for line objects. (uicontextmenu, uimenu, line)

defaultlinecreatefcn(varargin)

dualcolorplot(x,y,F,OPT)

linecmenu(varargin)

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

displaytable by Matt Caywood

Legible display of N-dimensional data tables with color highlighting of entries. (matrix, array, table)

displaytable(data,headings,labels,cellsize,decimalsize,pe...

Contact us