Have you vectorised your MATLAB code?

By David Warne, QCIF eResearch Analyst at QUT

MATLAB is a powerful programming environment for scientific applications. It is designed to be highly optimised for matrix and vector mathematical operations. Writing code in a way that leverages these matrix operations is known as vectorising code. There are many reasons why a particular piece of MATLAB code is running slow, but low usage of vectorised code is one of the most common ones that I see.

Read more ...