image thumbnail


version (5.07 KB) by Jochen Weber
Perform matrix multiplication (mtimes) along further dimensions, and also input transpose.


Updated 19 Jan 2016

View License

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.

Cite As

Jochen Weber (2022). mtimesnd (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!