This preview shows page 1. Sign up to view the full content.
Unformatted text preview: be generated for invalid input. The factorization can be performed for any matrix or scalar, so input should be tested to be sure it is not a string, cell variable, etc. Spaghetti code should be avoided. In other words, the sequence of instruc-tions should be top-to-bottom (including loops), without a lot of jumps in control. This is Fne, although there is a lot of nesting of loops. The names of variables should be chosen to remind the reader of their purpose. The letter q is often used for an orthogonal matrix, and r is often used for an upper triangular one, but it would probably be better practice to use uppercase names for these matrices. 17...
View Full Document
- Fall '11