VECTMULT Matrix multiplication for arrays of vectors. [Y1,Y2,...,YM]=VECTMULT(A,X1,X2,...,XN) is equivalent to the usual multiplication of a matrix by a vector, Y = A * X where A is an M x N matrix, X is an N-vector, and Y is an M-vector. X1--XN and Y1--YM are the components of X and Y respectively. Often however one has arrays of vectors. Here we group the N components of X into N arrays, X1,X2,...,XN, which can be of any size provided they are all the same size. VECTMULT then returns the components of the output vector Y as the M arrays Y1,Y2,...,YM. The matrix A may be a M x N matrix, or alternatively, it may be an array of size M x N x SIZE(XN). See also MATMULT. Usage: [y1,y2]=vectmult(a,x1,x2); [y1,y2,y3]=vectmult(a,x1,x2,y3); 'vectmult --t' runs a test. _________________________________________________________________ This is part of JLAB --- type 'help jlab' for more information (C) 2004--2015 J.M. Lilly --- type 'help jlab_license' for details