image thumbnail

updated 1 month ago

Multicore - Parallel processing on multiple cores by Markus Buehren

This package provides parallel processing on multiple cores/machines. (distributed processin..., parallel computing, parallel processing)

chompsep(str)

concatpath(varargin)

datenum2.m

image thumbnail

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

Cumulative 2x2 Complex Matrix Multiplication by Nicolas Ayotte

This takes a 2x2xm matrix and calculates the cumulative matrix multiplication along the 3rd diim. (linear algebra)

image thumbnail

updated 7 months ago

Moving window standard deviation by John D'Errico

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

movingstd(x,k,windowmode)

image thumbnail

updated 8 months ago

gapolyfitn by Richard Crozier

optimises the functional form of a multi-dimensional polynomial fit to model data (optimization, linear regression, modelling)

GenerateNewTerm(vars, maxPower, poly, maxLoops)

HasTerm(p1, p2, newTerm, vars)

PolyFitScore(polyVec, polyStruct)

image thumbnail

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

refactor_fcn_name by Richard Crozier

Change the name of a function called in your m-files and optionally move it too. (refactor, rename)

refactor_fcn_name(fcnname, newfcnname, topdir, domove)

image thumbnail

updated 12 months ago

strrepfile by Richard Crozier

Replace one or more strings in one or more files safely (string replace)

strrepfile(filename,S1,S2)

image thumbnail

updated 12 months ago

regexprepfile by Richard Crozier

Performs regular expression replacement in a file or files (regexp, regexprep, regular expression)

regexprepfile(filename,exp,repstr)

image thumbnail

updated 1 year ago

Variable Precision Integer Arithmetic by John D'Errico

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

demo_vpi

base2vpi(B,base)

bin2vpi(B)

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

publish2latex by Matthew Harker, Paul O'Leary,

Using full Latex markup in m-files to generate high quality documentation. Version 1.3 (latex, pdf, publish)

addSectionAt( generatedFile, at);

analyzeCellLines( cellLines )

charArray2cells( stringArray, eolChar )

image thumbnail

updated 1 year ago

xlsrange by Richard Crozier

Generates an excel range from row and column number (xls, excel)

xlsrange(row1, col1, row2, col2)

image thumbnail

updated 1 year ago

Designs a passive filter ( input filter ) for power applications by yoash levron

Optimal design of passive filters, also known as input filters, EMI filters (power electronics, power systems, passive filter)

filter_damping_design( stg_L, stg_C, fs, Zmax)

tf_filter( Lvec,Cvec, Ldvec, Rdvec , w)

filter_damping_design_example.m

image thumbnail

updated 1 year ago

Display Formatted Text Table of Data by Richard Crozier

Display data, mixed numeric and strings with optional col and row headers and your choice of col sep (format, text, output)

displaytable(data, colheadings, wid, fms, rowheadings, fi...

image thumbnail

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

tightfig by Richard Crozier

Remove excess margins from figures. (figure, axes, magrgin)

tightfig(hfig)

image thumbnail

updated 1 year ago

DispA(ll) by Alan Robinson

Enhanced disp that can take any number of arguments (strings, display, disp)

dispa(varargin)

image thumbnail

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

samesize by Richard Crozier

Determine if all inputs are the same size in all dimensions. (size, dimensions, array)

samesize(varargin)

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

odesplit by Richard Crozier

Splits evaluation of a system of differential equations into chunks to avoid out of memory errors (ode, split)

odesplit(odefcn, odeevfcn, tspan, y0, odeoptions, spfcn, ...

params=parse_pv_pairs(params,pv_pairs)

rigid(t,y)

image thumbnail

updated almost 3 years ago

Web scraping by Richard Tol

Scrapes data from multiple websites and stores them in a structured database (data import, demo, web scraping)

ideasrepeccountry.m

indicators.m

processrank.m

image thumbnail

updated 3 years ago

Adaptive Robust Numerical Differentiation by John D'Errico

Numerical derivative of an analytically supplied function, also gradient, Jacobian & Hessian (adaptive, differentiation, automatic)

derivest_demo

multivariable_calc_demo

derivest(fun,x0,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

MTIMESX - Fast Matrix Multiply with Multi-Dimensional Support by James Tursa

Beats MATLAB 300% - 400% in some cases ... really! (mtimes, multiply, speed)

mtimesx.m

mtimesx_build(x)

mtimesx_sparse(a,transa,b,transb)

image thumbnail

updated 3 years ago

Symbolic Polynomial Manipulation by John D'Errico

Symbolic polynomial manipulation as an exercise in OOP

Sympoly_demos

[nodes,weights]=gaussquadrule(n,class,alpha,beta)

adjoint(A)

image thumbnail

updated almost 4 years ago

2D Vector Field Visualization by Nicholas Howe

Two functions that create visualizations of 2D vector fields (visualization, 2d, vector fields)

cquiver(varargin)

vfcolor(varargin)

image thumbnail

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

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

Generate a new function m-file, with documentation by Richie Cotton

This makes it really easy to document your functions in a standard format. (utility, template, development)

GenerateFunctionMFile(ask)

GetUserLoginName()

fopen0(varargin)

image thumbnail

updated 4 years ago

allwords by John D'Errico

Parse a sentence or any string into distinct "words" (string, char, words)

allwords(str,sepchars)

image thumbnail

updated 4 years ago

factorpairs by John D'Errico

Generate all pairs of factors N = p*q, p <= q, for positive integer N (factor, factors, divisors)

factorpairs(N)

image thumbnail

updated 4 years ago

nthprime by John D'Errico

Finds either the n'th prime, or compute the number of primes that are less than some given value.

nthprime(N,opmode)

image thumbnail

updated 4 years ago

MIN2, MAX2 by John D'Errico

Global min or max value of a 2-d array, the search may be limited to specified rows or columns

max2(M,userows,usecols)

min2(M,userows,usecols)

image thumbnail

updated 4 years ago

binomfactors by John D'Errico

Returns a factored form for very large binomial coefficients

binomfactors(n,k)

Contact us