# Category Archives: Optimizing your code

Everything you need to know to make your code runs faster

## Code is poetry

Today, I want to give you some insight on how to make clean Matlab code that everyone can understand. This is a rather subjective subject but as a general guideline, I think you should think about the following: Programming languages … Continue reading

## Columns and Rows are not the same

I am going to talk about arrays today..I show that Columns and Rows are not the same. I end on a few advanced optimization you can do with this. Continue reading

## On fractal graphics

I was recently browsing, just out of curiosity, an e-book by one of Matlab founder, Cleve Moller called “Experimenting with Matlab“. I recommend it to all new and experienced users of Matlab. This is quite an interesting reading to get started. On … Continue reading

## Some places, some rules

In my last post, I talked about using In place computation to limit memory usage of your calculation. I actually did not had the time to mention some important rules and limitations on this mechanism. You would be surprised but … Continue reading

## What happen at my place, stays at my place

I recently talked about the Copy on write mechanism. It ensures that, when you copy a variable, memory is handled in an optimal way. I underlined that when you use subfunction, this can be quite useful as you in effect … Continue reading

In essence, writing a Matlab program is aligning a succession of command that you send to the Matlab interpreter. Indeed, Matlab provides you with a large library of functions that you can use. The job of Mathworks is to create … Continue reading

## Look for the loop

A very well known piece of knowledge is that Matlab is bad at for loop. But you might ask: why? Matlab is an interpreted language. This means that it will take time to read each line, more than it would … Continue reading

## What’s the difference between AND and AND AND?

I guess most of you know what & means. This is the AND operator. It does something simple. If you have two variable x and y and you ask : Then a will be equal to 1 only if both … Continue reading