Intended use is for a large array of small matrices that need to be multiplied together. For example, having 1000 4x3 matrices and 1000 3x7 matrices you may want to create the resulting 1000 4x7 matrices from multiplying them. The 'brute force' method for this is to create a for loop from 1 to 1000 and multiply each one individually. With this function, instead, the for loop is over the dimensions of the matrices. I.E. in this case a nested for loop of 1 to 4 and of 1 to 7, totaling 28 iterations instead of 1000.
Cite As
ja (2024). ndmult(B,C,d) (https://www.mathworks.com/matlabcentral/fileexchange/63826-ndmult-b-c-d), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Linear Algebra >
Tags
Acknowledgements
Inspired: ndinv(B,d)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |