This a condensed version of the "MATLAB Programming Style Guidelines" with updates from Richard Johnson since the writing of the 2002 article. It fits on one page and therefore is a quick reference.
For a more comprehensive work see "The Elements of MATLAB Style" by Richard Johnson (http://goo.gl/cUA7Gr) and "Updates to The Elements of MATLAB Style" (http://goo.gl/GwHqNp).
If you find this useful or helpful, please rate it and give a quick comment. I have found that this document has made its way around the world. I get a glimpse once in a while of who is using it via an email or quick message.
Jason Nicholson (2021). Matlab Style Guidelines Cheat Sheet (https://www.mathworks.com/matlabcentral/fileexchange/45047-matlab-style-guidelines-cheat-sheet), MATLAB Central File Exchange. Retrieved .
I am considering an update that corresponds to Object Oriented programming in MATLAB. This would probably be a one page summary devoted to writing classes in MATLAB language. Thoughts?
Your ideas about "i" and "j" have been addressed in the 29-Jan-2014 version.
@Volker -- I agree. I use ii, jj, kk as my short scope variables instead.
Just don't use "i" or "j" for short scope variables - they are predefined as the imaginary unit sqrt(-1) in matlab.
Inspired: MATLAB Style Guidelines 2.0
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!