EGR 106 Intro to Engineering II Engineering problem solving using MATLAB Text: Amos Gilat, MATLAB An Introduction with Applications, Wiley 2004 ISBN
Instructor Section 3 James C Daly, Dept of Electrical; and Computer Engineering, 120 Kelley Annex Office hours TWR 1 -3pm (Office) (Home) (Cell)
Grading Attendance15% Homework30% 3 Quizzes30% Team project25%
Homework 30% of your grade No partial credit Done during lab. If you can not solve a problem, get help. 10 point scale for each assignment Late home work penalty is 2 points Not accepted after one week.
MATLAB MATrix LABoratory Powerful Easy to use Expandable Great graphics Get your free (almost) copy of MATLAB for your PC from the wizards at ECL (Kirk203)
Arithmetic Operations Addition Subtraction-3-2 Multiplication*3*6 Right Division/7/3 Left Division\7\3 = 3/7 Exponentiation^2^3 = 8
Precedence Precedence is the order operations are preformed (3^2) anything in parentheses is done first 5^2 exponentiation is next 2*2 or 10/5 multiplication or division next 1+1 or 5-3 addition or subtraction next Operations are done from left to right
Precedence Example 2^(6/2) = 2^3 = 8 2^6/2 = 64/2 = 32
Some Syntax Assignment operator = > x= 1; > x = 2*x+1; The value of x is 3 not -1 ;
Predefined Variables ans pi eps2^(-52) about 2.22e-16 inf isqrt(-1) jSame as i NaNNot a number 0/0
Some Functions Elementary Math, sqrt(x), exp(x), etc. Trig, sin(x), cos(x), x is in radians Rounding functions, round(x), etc