image thumbnail

updated 1 month ago

COMBNSUB by Jos (10584)

Subset of all possible combinations of a fixed number of elements of a vector (v1.1, june 2013) (combination, subset, selection)

combnsub(V,N, IX)

image thumbnail

updated 4 months ago

COMBN (4.3) by Jos (10584)

All combinations of N elements taken from the vector V. (combination, select, permutation)

combn(V,N)

image thumbnail

updated 1 year ago

Concatenate arrays with different sizes in Matlab by Andres

This function allows you to concatenate arrays with different sizes padding with NaN where needed. (array, concatenate, function)

[catmat]=padconcatenation(a,b,c)

image thumbnail

updated 1 year ago

Fun Snowboard Video by Max

Just a fun little "video" of a snowboarder doing tricks. (snowboard, matrix transformation..., matrices)

final.m

image thumbnail

updated 1 year ago

ALLCOMB by Jos (10584)

All combinations of input (v3.0, may 2012) (all, combination, select)

image thumbnail

updated 1 year ago

Normalize N-D Vectors in Single Matrix or N Component Matrices by Ioannis Filippidis

Normalizes N-D vectors provided either in one matrix, or as multiple component matrices. (normalize, matrices, vector)

normvec(varargin)

vnorm(A,varargin)

usage_example_normvec.m

image thumbnail

updated 1 year ago

TPROD -- arbitary tensor products between n-d arrays by Jason Farquhar

TPROD -- efficiently allows any type of tensor product between 2 multi-dimensional arrays (matrices, einstein summation, multidimensional mult...)

[C,Atp,Btp]=etprod(Cidx,A,Aidx,B,Bidx)

[Z2]=orderTests(X,Y,sz)

[]=tprod_testcases(testCases,debugin)

image thumbnail

updated almost 2 years ago

CATPAD by Jonathan Sullivan

Concatenation of arbitrarily sized data along any dimension. (cell, merge, length)

catpad.m

image thumbnail

updated almost 2 years ago

PADCAT by Jos (10584)

concatenate vectors with different lengths by padding with NaN (v1.2, oct 2011) (matrix, matrices, matrix manipulation)

padcat(varargin)

image thumbnail

updated 2 years ago

RANDBLOCK by Jos (10584)

scramble matrices using blocks (v2.3, mar 2011) (matrices, scramble, matrix)

randblock(M,S)

image thumbnail

updated 2 years ago

Matrices program with a script for eigenvalues perturbations by Emanuele Natale

Some simple programs and a script, that could be usefull using "Trajectories of eigenvalues" (matrices, linear algebra, eigenvalues)

A=matrix

A=randint(m,n,r)

A=turn(alpha)

image thumbnail

updated 2 years ago

DEALCELL by Jiro Doke

Deals cell elements to variables (similar to DEAL) (matrices, deal, assign)

dealcell(varargout)

image thumbnail

updated almost 3 years ago

REPOP -- efficient replicating n-d array operations by Jason Farquhar

REPOP -- any element-wise operator between different sized n-d matrices without memory copies (matrices, replicating array ope...)

[]=repop_testcases(testType)

[varargout]=repop(varargin)

image thumbnail

updated almost 3 years ago

cofactors by Gordon Amoako

This is a function that computes the cofactors of an n x n matrix (mathematics, matrices)

cofactors(A)

image thumbnail

updated 3 years ago

Mathematica Symbolic Toolbox for MATLAB--Version 2.0 by Ben Barrowes

A symbolic toolbox for MATLAB based on Mathematica. (matrix, matrices, matlab)

testscript.m

image thumbnail

updated 3 years ago

Small size linear solver by Bruno Luong

Linear solver of multiple 2x2 and 3x3 systems (liner solver, determinant, cofactor)

inv2(A, B, varargin)

inv3(A, B, varargin)

bench_inv2inv3.m

image thumbnail

updated 3 years ago

NCHOOSE (v2.1 mar 2010) by Jos (10584)

return all combinations of the elements of a set (nchoosek, combination, set)

nchoose(S)

image thumbnail

updated 3 years ago

Squish by Mirko Hrovat

Squish removes ALL singleton dimensions. (matrices, squeeze, singleton)

squish(x)

image thumbnail

updated 3 years ago

Function to normalize columns of given matrix by B H Sri Hari

Normalizes columns of a matrix (matrices)

Normalize_Colmns(A)

image thumbnail

updated 3 years ago

Matrix Limits by Robert Bemis

Provides simple syntax to get range of values in N-dim numeric arrays. (matrices, data range, simple)

[x,y]=limits(a)

image thumbnail

updated 3 years ago

CELL2FLOAT by Jos (10584)

converts cell array into scalar float array (v4.0, jan 2010) (matrices, cell, double)

cell2float(C, Filler, StopOnError)

image thumbnail

updated 3 years ago

GETCHUNKS by Jiro Doke

Get the number of repetitions that occur in consecutive chunks. (matrices, repetitions, histogram)

getchunks(a, opt)

image thumbnail

updated 3 years ago

Pseudo Enumerations by Ben Hinkle

Create, manipulate and display arrays with enumeration values (matrices, enum, enumeration)

dispe(x,varargin)

penum(varargin)

image thumbnail

updated almost 4 years ago

ENUMARRAY by Jen

An array that inherits from class DOUBLE and allows a user to index elements using an enumerated typ (matrices, double, array)

enumarray

image thumbnail

updated almost 4 years ago

unique_no_sort_rows by Michael Petralia

find unique rows of a matrix without resorting the rows (cell array, matrices, matrix)

unique_no_sort_rows(A)

image thumbnail

updated 4 years ago

RANDMAT by Peter (PB) Bodin

Random shuffling of 2D-array elements. (shuffle, random, matrices)

randmat(X,DIM)

image thumbnail

updated 4 years ago

Binary Serach of rows of M-by-N Matrix by Dr. Murtaza Khan

Binary Search that is based on sum of column values of rows of input M-by-N Matrix (binary serach, matrices, search)

[rStart,rEnd]=findindofeqcolsumrows(Mat,pos)

bsearchmatrows(mat,srow,varargin)

bsearchmatrowsTest1.m

image thumbnail

updated 4 years ago

SYMBMATMAKE by Richard Hindmarsh

Makes a subscripted symbolic matrix . (symbolic math, symbolic, subscripted)

symbmatmake(vn,m,n)

image thumbnail

updated 4 years ago

MATLAB in Physics - Matrices by Matt McDonnell

The third lecture in a series on using MATLABĀ® in undergraduate physics courses. (matrices, demo, physics)

rrefexample(A)

rrefmovie(A,tol)

vectorExamples

image thumbnail

updated 4 years ago

index.m - create a list of the indices and values of an array by Georg Stillfried

Create a list where each value (content) of an array is displayed together with its index. (matrices, index, indexes)

index (M,varargin)

image thumbnail

updated 4 years ago

UNIQUEWITHEQUALNANS by Jos (10584)

Set unique, treating NaNs as equal (v2.0, mar 2009) (matrices, unique, sort)

uniquewithequalnans(A,varargin)

image thumbnail

updated 4 years ago

Align repeated trials of analog data to a variable event by Matthew Nelson

Align matrices of repeated trials of analog data to a variable event without a for loop over trials. (matrices, trial, saccade)

varargout=ADAlignTrials(AlignEv,bn,minTrTime,varargin)

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

CIRCULANT (v2.0, feb 2009) by Jos (10584)

(yet another, but fast) Circulent Matrix (matrix, matrix manipulation, matrices)

circulant(A,d)

image thumbnail

updated 4 years ago

NDLINSPACE (v1.1, feb 2008) by Jos (10584)

Generalized LINSPACE: linearly spaced values between mutliple points (matrices, values, interpolate)

ndlinspace(M1,M2,N)

image thumbnail

updated 4 years ago

interweave by John T. McCarthy

This function interweaves (alternates/overlaps) the columns of equal-sized matrices A,B,C... (matrices, interweave, interlace)

interweave(A, varargin)

image thumbnail

updated 4 years ago

Cleve's Corner: Experiments with MATLAB by Linda Webb

Free, online book for educators and high-school students looking to go beyond the standard courses (whitepaper, article, matlab)

image thumbnail

updated 4 years ago

REPLICATE by Mark Ruzon

Create a larger array by expanding each element of an array into a subarray. (matrices, replicate, repmat)

replicate(A,S,S1)

image thumbnail

updated 4 years ago

RANDPERMBREAK (v1.1, nov 2008) by Jos (10584)

randomize the order of elements within sections of a vector (rand, sections, matrix manipulation)

randpermbreak(N,BP, bpfixed)

image thumbnail

updated 4 years ago

SORTBREAK (v1.0, nov 2008) by Jos (10584)

sort elements of a vector between break points (sort, sections, vector)

sortbreak(X,BP, bpfixed) ;

image thumbnail

updated almost 5 years ago

SORTSET (v2.0) by Jos (10584)

Sort a set according to a user-defined order (matrices, list, set)

sortset(S, ORDER, DIM)

image thumbnail

updated almost 5 years ago

RESETREPLICATES by Jos (10584)

change the value of replicated elements in a matrix (matrices, unique, rows)

resetreplicates(X,DIM,VAL) ;

image thumbnail

updated almost 5 years ago

vec2grid by Kelly Kearney

Reshapes vector data to a grid (matrices, reshape, griddata)

vec2grid(varargin)

image thumbnail

updated almost 5 years ago

SLIDEFUN (v4.0, sep 2008) by Jos (10584)

apply function to a moving window over a vector (moving, feval, running)

slidefun (FUN, W, V, windowmode, varargin)

image thumbnail

updated almost 5 years ago

shift by John T. McCarthy

SHIFT a row or column RELATIVE to the other elements in a MATRIX. (matrices, shift, matrix)

shiftd(A,column,shift,type)

shiftl(A,row,shift,type)

shiftr(A,row,shift,type)

image thumbnail

updated almost 5 years ago

Merge matrices by Dimitri Shvorob

(in a SQL equijoin) (sql, join, matrices)

joinmat(x,y,type)

image thumbnail

updated almost 5 years ago

Reshape a matrix by Dimitri Shvorob

(pivot and unpivot) (matrices, long, tall)

tall2wide(a,r,c)

wide2tall(A,varargin)

image thumbnail

updated 5 years ago

FILLZERO (v2.1, may 2008) by Jos (10584)

replaces zeros of an array with preceeding non-zero values (matrices, fill, zero)

fillzero(X, DIM)

image thumbnail

updated 5 years ago

Running Extrema by Dan K

Returns the running minimum or maximum of a vector or matrix (analagous to the running average) (extrema, minima, maxima)

runningExtreme(input,nSamples,type)

image thumbnail

updated 5 years ago

isvect by Matt Fig

ISVECT(A,GUESS) Returns logical true if A is a vector of type guess. (matrices, is vector isvector ch...)

isvect(A,guess,varargin)

Contact us