Matlab lesson on defensive programming

Translation of the Python lesson on defensive programming. Addresses issue #797 
+[change one thing at a time, for a reason](../../rules.html#change-one-thing-at-a-time).