Code covered by the BSD License  

Highlights from
ntimes

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

ntimes

by Michael Stachowsky

 

16 Sep 2009

Multiplies arrays of 2D matrices in an efficient manner.

| 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)
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
can you tell me how to store values in mtrix and use it with 50 sheen 12 May 2010 18:48:07

Contact us at files@mathworks.com