Lately, I have been working on several iterative algorithms in MATLAB and have been hit hard on MATLAB's performance (or lack thereof) when it comes to loops. I know the benefits of code vectoring whenever possible, but are there any optimization tools when you need a loop for your algorithm?
I am aware of the MEX file option for writing small routines in C / C ++, although, given my algorithms, this can be a very painful option, given the required data structures. I mainly use MATLAB for simplicity and speed of prototyping, so a syntactically complex, statically typed language is not ideal for my situation.
Are there any other suggestions? Even other languages ββ(python?), Which have relatively painless matrix tools, are an option.
source share