Be the first to rate this file! 15 downloads (last 30 days) File Size: 1.54 KB File ID: #25346

ntimes

by Michael Stachowsky

 

16 Sep 2009

Code covered by BSD License  

Multiplies arrays of 2D matrices in an efficient manner.

Download Now | Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.5 (R2007b)
Zip File Content  
Other Files license.txt,
ntimes(2).m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
23 Sep 2009 Matthew Simoneau

The "(2)" in the filename makes it impossible to run.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
matrix multiplication Michael Stachowsky 21 Sep 2009 11:42:28
3d Michael Stachowsky 21 Sep 2009 11:42:28
mathematics Michael Stachowsky 21 Sep 2009 11:42:28
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com