MATLAB array manipulation tips and tricks

Most recently updated 3rd April 2003

About the project – a book and a toolbox

This project is intended to be a compilation of tips and tricks mainly related to efficient ways of performing low-level array manipulation in MATLAB. Here, array manipulation means replicating and rotating arrays or parts of arrays, inserting, extracting, replacing, permuting and shifting elements, generating combinations and permutations of elements, run-length encoding and decoding, arithmetic operations like multiplying and dividing arrays, calculating distance matrices and so forth. A few other issues regarding how to write fast MATLAB code are also covered.

It started out as a small paper before it evolved into something more like a book. Then I realized it would be nice to have a collection of programs implementing the code shown in the book. So now there is a book and an accompanying toolbox.

Download the most recent version

Download older versions

Older versions can be found here.

Viewing and printing the document

PDF (Portable Document Format) files can be viewed and printed with Adobe Acrobat, Adobe Acrobat Reader, and Ghostscript, Ghostview and GSview.


Valid XHTML 1.0! Valid CSS! Most recently modified 2010-01-21 17:34:37 +01:00
Peter John Acklam (pjacklam@online.no)