image thumbnail

updated 1 year ago

Generalised Truth Tables by Richard Stapenhurst

Generate 'truth tables' where columns correspond to digits in arbitrary mixtures of bases. (truth table, combinatorics, counting)

ttable(values)

image thumbnail

updated 1 year ago

slices by Jeremy Manning

Slice a tensor (n-d matrix) along the d^th dimension. (repmat, cellfun, arrayfun)

slices(m,d)

image thumbnail

updated 2 years ago

SVM Demo by Richard Stapenhurst

An interactive demo of how an SVM works, with comparison to a perceptron (arrayfun, machine learning, artificial intelligen...)

LinearClassifier

svm_demo

image thumbnail

updated 2 years ago

structfind by Dirk-Jan Kroon

Search for a value, cell or string inside a Matlab struct (structfind, struct, find)

index=structfind(a,field,value)

image thumbnail

updated 4 years ago

matrixfunction by Pierce Brady

summary (matrix function, arrayfun, for loops)

matrixfun(hFunction,A,B,Dim)

matrixfuncc(hFunction,A,B)

matrixfunccn(hFunction,A,B)

image thumbnail

updated 5 years ago

apply by Stephen Lienhard

Apply a function looping over a dimension of a matrix (matrices, arrayfun, margin)

apply(fun,x,dim,varargin) %#ok<INUSL>

image thumbnail

updated 5 years ago

BLOCKFUN applies function on sub blocks of an array by Mathias Ortner

partition an ND-array into sublocks and then applies a function on each block (matrices, cellfun, arrayfun)

X=blockfun(X,S,fun)

Contact us