You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Given 2 3D arrays, A and B, where A(:,:,i) and B(:,:,i) are i 2D matrices, multiply A(:,:,i)*B(:,:,i) without the use of a for loop.
More an experiment in coding than a practically useful piece of code, the goal was to derive an efficient method for multiplying many matrices together without the use of computationally expensive for loops.
Some applications include optical flow algorithms and image processing.
Created by a colleague, Ampere Kui.
Cite As
Michael Stachowsky (2026). ntimes (https://www.mathworks.com/matlabcentral/fileexchange/25346-ntimes), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0.0 (1.53 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
