5.0

5.0 | 2 ratings Rate this file 120 downloads (last 30 days) File Size: 547.18 KB File ID: #22943

Guidelines for writing clean and fast code in MATLAB

by Nico Schlömer

 

10 Feb 2009 (Updated 20 Dec 2009)

Code covered by the BSD License  

This 34-pages document gives hints on how to write fast and good quality MATLAB code.

Download Now | Watch this File

File Information
Description

This document is aimed at all MATLAB users who are already familiar with the syntax but may not yet know the each and every pitfall of MATLAB programming. Its goal is to give a number of hints which enable the reader to write quality MATLAB programs and to avoid commonly made mistakes.

There are three major independent chapters which may very well be read separately. Also, the individual chapters each split up into one or two handful of chunks of information. In that sense, this document is really a slightly extended list of dos and don’ts.

This guide is written as part of a basic course in numerical analysis, most examples and codes will hence tend to refer to numerical integration or differential equations. However, almost all aspects are of general nature and will also be of interest to anyone using MATLAB.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Writing Fast MATLAB Code

MATLAB release MATLAB 7.8 (R2009a)
Zip File Content  
Other Files license.txt,
matlab-guidelines.pdf
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
21 Dec 2009 Roger Parkyn

Good clearly presented examples make this easy to read but still informative. Will be useful for people new to Matlab (and I learnt a few things from it too!).

05 Jan 2010 Vaclav Bouse

nice, clear, overview, worthy to read

Please login to add a comment or rating.
Updates
02 Jun 2009

- changed colors
- added paragraph on logical indexing
- updated license

20 Dec 2009

typo in description

Tag Activity for this File
Tag Applied By Date/Time
documentation Nico Schlömer 11 Feb 2009 12:43:45
article Nico Schlömer 11 Feb 2009 12:43:46
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com