Writing Fast MATLAB Code

Speed up your project with this collection of techniques.
80,2K descargas
Actualizado 10 feb 2009

Ver licencia

Nota del editor: This file was selected as MATLAB Central Pick of the Week Popular File 2008

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

Citar como

Pascal Getreuer (2024). Writing Fast MATLAB Code (https://www.mathworks.com/matlabcentral/fileexchange/5685-writing-fast-matlab-code), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2008b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Programming en Help Center y MATLAB Answers.
Agradecimientos

Inspiración para: Guidelines for writing clean and fast code in MATLAB

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.1.0.0

Updated for R2008b, new introduction and added Ax=b section

1.0.0.0

Updates for MATLAB 7, including a new section on JIT