AMATH 301- Midterm Exam Guide - Comprehensive Notes for the exam ( 75 pages long!)

544 views75 pages
16 Feb 2018
School
Course

Document Summary

Begin all code with > clear all; close all; clc; Clear all removes variables from workspace, reveals errors faster. Close all closes all plots and things that mess up data outputs. Clc clears the command window for a fresh start. Entering ; at the end of a line won"t print the line to command window. This will speed up running of the code because it doesn"t have to print to monitor. Also code will be graded faster, won"t clog log file. Entering % allows for a comment in matlab, which is typically used to enter explanations of code. Entering %% will divide the code into two sections. You can run each section separately (faster and more efficient for codes with multiple parts) Can"t add horizontal and vertical together, so be consistent. This saves all the numbers as a vector to recall. Using an operator will do to all the numbers in the vector.