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
This note was uploaded on 01/21/2012 for the course MAP 3302 taught by Professor Dr.robin during the Fall '11 term at University of Florida.
- Fall '11