This function will perform matrix multiplication (mtimes) for two arguments of size AxMx... and MxBx... for output size AxBx... along further dimensions. In addition to the simple loop, it already provides for transposing either (or both) of the arguments, e.g. to compute M' * M covariance matrices along the further dimensions.
Jochen Weber (2021). mtimesnd (https://www.mathworks.com/matlabcentral/fileexchange/54993-mtimesnd), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!