Download presentation
Presentation is loading. Please wait.
1
EGR 106 Intro to Engineering II Engineering problem solving using MATLAB Text: Amos Gilat, MATLAB An Introduction with Applications, Wiley 2004 ISBN 0-471-43997-5
2
Instructor Section 3 James C Daly, Dept of Electrical; and Computer Engineering, 120 Kelley Annex Office hours TWR 1 -3pm daly@egr.uri.edu 874-5844 (Office) 789-0654(Home) 742-5759(Cell)
3
Grading Attendance15% Homework30% 3 Quizzes30% Team project25%
4
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.
5
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)
6
Arithmetic Operations Addition + 2+2 Subtraction-3-2 Multiplication*3*6 Right Division/7/3 Left Division\7\3 = 3/7 Exponentiation^2^3 = 8
7
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
8
Precedence Example 2^(6/2) = 2^3 = 8 2^6/2 = 64/2 = 32
9
Some Syntax Assignment operator = > x= 1; > x = 2*x+1; The value of x is 3 not -1 ;
10
Predefined Variables ans pi eps2^(-52) about 2.22e-16 inf isqrt(-1) jSame as i NaNNot a number 0/0
11
Some Functions Elementary Math, sqrt(x), exp(x), etc. Trig, sin(x), cos(x), x is in radians Rounding functions, round(x), etc
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.