ENGR 101 Lecture Notes - Lecture 9: Logical Connective, Relational Operator, Exclusive Or

18 views4 pages
24 Jan 2017
School
Department
Course

Document Summary

Repetition leads to errors because there are more opportunities for typos. Repetition makes debugging difficult because mistakes are repeated. Experienced coders find code with repetition harder to read and understand. Collection of matlab code that is stored so you can run it later. Use global scope - can see everything ever created in matlab. Anything created in script files can be accessed in the future function files. Also matlab code but is used in a different way than script files. Use local scope - the code that runs inside of a function file cannot access variable that exist inside that workspace. Can only access variable that are inside that single file. Send it inputs, has access to only those inputs, then uses variables inside they work through inputs the function, then pass out outputs. Any variables created inside a function only exist until the function is done.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents