Writing Fast MATLAB Code
by Pascal Getreuer
11 Aug 2004
(Updated 10 Feb 2009)
Speed up your project with this collection of techniques.
|
Watch this File
|
| File Information |
| Description |
Learn how to use the Profiler tool, vectorized functions, and other tricks to writing efficient MATLAB code. This article includes how to convert any array into a column vector, bounding a value without if statements, and repeating/tiling a vector without repmat.
Contents:
* Introduction
* The Profiler
* Array Preallocation
* JIT Acceleration
* Vectorization
* Inlining Simple Functions
* Referencing Operations
* Solving Ax=b
* Numerical Integration
* Signal Processing
* Miscellaneous Tricks
* Further Reading |
| Acknowledgements |
This file inspired
Local Peaks and Guidelines For Writing Clean And Fast Code In Matlab.
|
| MATLAB release |
MATLAB 7.7 (R2008b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (83) |
| 02 Oct 2012 |
Manu
|
|
|
| 29 Jul 2012 |
Michael
|
|
|
| 30 Mar 2012 |
Olexander Zhytenko
|
|
|
| 18 Feb 2012 |
Olexander Zhytenko
|
|
|
| 24 Jan 2012 |
Sven Koerner
|
|
|
| 27 Jun 2011 |
David Smith
|
|
|
| 28 Jan 2011 |
Michael Völker
|
|
|
| 30 Dec 2010 |
Luis Andres
|
|
|
| 23 Sep 2010 |
Savas
|
|
|
| 28 Apr 2010 |
Javier Lopez-Calderon
|
|
|
| 03 Apr 2010 |
Ashvin Kumar
|
|
|
| 23 Oct 2009 |
Jada
|
|
|
| 07 Aug 2009 |
Danila
|
|
|
| 19 May 2009 |
Leonardo Glavina
|
|
|
| 09 Jan 2009 |
Aniket
|
|
|
| 31 Dec 2008 |
Nguyen Thang
|
|
|
| 29 Nov 2008 |
sara
|
|
|
| 28 Nov 2008 |
Luigi Giaccari
|
|
|
| 25 Nov 2008 |
Sunil
|
|
|
| 11 Oct 2008 |
Juan Pablo Arias
|
|
|
| 04 Oct 2008 |
Khanh Vo
|
|
|
| 04 Oct 2008 |
Khanh Vo
|
|
|
| 28 Sep 2008 |
Gamal Alkirshi
|
|
|
| 08 Sep 2008 |
AMIT RAJ
|
|
|
| 02 Sep 2008 |
Husam Aldahiyat
|
|
|
| 14 Aug 2008 |
Abel Brown
|
|
|
| 07 Aug 2008 |
nick .
|
|
|
| 07 Aug 2008 |
ritesh shah
|
|
|
| 26 Jul 2008 |
abiodun olaluwe
|
|
|
| 16 Jul 2008 |
taneat zaetung
|
|
|
| 15 Jul 2008 |
Issac Niwas S
|
|
|
| 06 Jul 2008 |
marie billa
|
|
|
| 19 Jun 2008 |
khaled darwish
|
|
|
| 08 May 2008 |
Elias Pipping
|
|
|
| 01 May 2008 |
chandra Guntupalli
|
|
|
| 01 May 2008 |
chandra Guntupalli
|
|
|
| 26 Mar 2008 |
biswa bhusan
|
|
|
| 23 Mar 2008 |
Dan Cohn
|
|
|
| 15 Feb 2008 |
ntobeko zulu
|
|
|
| 01 Jan 2008 |
burhan rasito
|
|
|
| 01 Dec 2007 |
Hari Kumar
|
|
|
| 24 Sep 2007 |
oktay gültekin
|
|
|
| 22 Sep 2007 |
dawuni mohammed
|
|
|
| 19 Sep 2007 |
yugandhar yadam
|
|
|
| 06 Sep 2007 |
yiseth brango
|
|
|
| 03 Aug 2007 |
Kyoung ho Chong
|
|
|
| 20 Jul 2007 |
Norbert P.
|
|
|
| 03 Jul 2007 |
Sam Clanton
|
|
|
| 12 May 2007 |
emanuel luduvicce
|
|
|
| 06 Mar 2007 |
Robson Mariano
|
|
|
| 02 Mar 2007 |
Azalin L
|
|
|
| 01 Mar 2007 |
Christoph Ullrich
|
|
|
| 23 Jan 2007 |
Simone Rabaovic
|
|
|
| 03 Jan 2007 |
Vishnuvenkatesh Dhage
|
|
|
| 21 Dec 2006 |
A M
|
|
|
| 14 Dec 2006 |
ali ahsan
|
|
|
| 15 Nov 2006 |
Sarah Miles
|
|
|
| 09 Nov 2006 |
Alonso Morgado
|
|
|
| 12 Oct 2006 |
Orlando Rodríguez
|
|
|
| 11 Oct 2006 |
Guillermo Ruiz
|
|
|
| 05 Apr 2006 |
asd asdf
|
|
|
| 26 Feb 2006 |
Ramin Moshfegh
|
|
|
| 07 Feb 2006 |
deepak panwar
|
|
|
| 05 Feb 2006 |
Jq Yin
|
|
|
| 13 Dec 2005 |
Syed Husain
|
|
|
| 30 Nov 2005 |
Jas Ellis
|
|
|
| 10 Nov 2005 |
Gerald Corzo
|
|
|
| 14 Oct 2005 |
Nemo Managna
|
|
|
| 08 Oct 2005 |
sivasankaran sivanandam
|
|
|
| 07 Oct 2005 |
Ahmed Ayoub
|
|
|
| 19 Sep 2005 |
smita parija
|
|
|
| 12 Sep 2005 |
maomun munmao
|
|
|
| 11 Jul 2005 |
Izru Garner
|
|
|
| 04 Jul 2005 |
ALoser IAm
|
|
|
| 10 May 2005 |
karthik lakshmanan
|
|
|
| 06 May 2005 |
O. L.
|
|
|
| 02 Apr 2005 |
Nabil nabil
|
|
|
| 24 Jan 2005 |
Troels Pedersen
|
|
|
| 05 Jan 2005 |
Rene Just Nielsen
|
|
|
| 19 Aug 2004 |
James Alaly
|
|
|
| 16 Aug 2004 |
Saeed Attarzadeh
|
|
|
| 14 Aug 2004 |
Pascal Getreuer
|
|
|
| 13 Aug 2004 |
Please Remove
|
|
|
| Updates |
| 07 Sep 2005 |
Various fixes and revision |
| 01 Dec 2005 |
Inlining Simple Functions section added |
| 24 Jan 2006 |
Various revisions, integration section added |
| 09 Jun 2006 |
Signal Processing section added |
| 07 Jan 2008 |
Updates for MATLAB 7, including a new section on JIT |
| 10 Feb 2009 |
Updated for R2008b, new introduction and added Ax=b section |
|
Contact us