MATH 1ZC3 Lecture 9: MATLAB hints

65 views5 pages

Document Summary

Go to page 4 if you just want to see how the assignment was done. Make a directory for this matlab lab and put all the stuff in there. Files can be opened in a separate editor window by double-clicking on them. The green play button in the editor windows starts the calculation. When testing, say pauseto suspend calculation until you input something, preventing the program from trying to compute unfinished questions. Semicolon at the end prevents it from printing. Use "1i" as opposed to just "i" for complex numbers (not mandatory, but more robust) "who" displays the names of all your variables. Matrix is written as [abcd;efgh;ijkl] a b c d e f g h i j k l. Or this: matrix=[abcd efgh ijkl] but this just looks retarded. For complex numbers, separate each column with a comma. A" is transpose of a, so rows columns. Regular inputs are the same (^, *, /, +, , etc. ) of variables.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related textbook solutions

Related Documents