Wednesday 25 July 2012

Few Tips for MATLAB programming

1. The only thing worse than getting an error message is not getting an error message.

2. MATLAB uses the IEEE double-precision floating-point format,
which provides about 15 significant digits of precision (in base 10). Leading
and trailing zeros don’t count as “significant” digits, so MATLAB can represent
large and small numbers with the same precision.

3. A comment is the part of a program that provides additional information about the
program, but does not affect its execution.



4. You must always be 100% sure that the code you are running is the
     code you think you are running.

5. Error messages tell you where the problem was discovered, not where
    it was caused.

6. The worst bugs aren’t in your code; they are in your head.

7. The best way to avoid a bug is to make it impossible.

No comments:

Post a Comment