image thumbnail

updated 6 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 8 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 8 months 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

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

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

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

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

Direct Indexing of Function Calls (OOP Exercise) by Matt J

Pseudo- function handle which can both call a function and post-index the output in 1 expression. (fancy function, indexing, function)

S=LibraryStruct

S=add2lib(varargin)

S=rmlib(varargin)

image thumbnail

updated 4 years ago

NameSpace scoping operator by Matt J

Generates namespace scoping operators for interfacing with 3rd party mfile libraries (namespace, scope, package)

NameSpace

image thumbnail

updated 4 years ago

Structure Fields To Variables by Matt J

Tool for importing/exporting workspace variables to or from a struct. (structure, field, variable)

assigns=structvars(varargin)

Contact us