Coding Tips

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. John Woods

A few tips for writing code, especially that kind doing computationally costly simulations.

<note tip>None of these points is obligatory, neither is the list comprehensive. But bear in mind that its the result of personal (practical) experience (of several people) over quite some time.</note>

Coding conventions

If you plan to add your code or at least parts of it to a thesis:

Results

1)
The Matlab editor offers this possibility.