1 / 11

EGR 106 Intro to Engineering II

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. Instructor Section 1. James C Daly, Dept of Electrical; and Computer Engineering, 120 Kelley Annex

armina
Download Presentation

EGR 106 Intro to Engineering II

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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 1 • James C Daly, Dept of Electrical; and Computer Engineering, • 120 Kelley Annex • Office hours MTWR 11 -12pm • daly@egr.uri.edu • 874-5844 (Office) 789-0654(Home) 742-5759(Cell)

  3. Grading • Attendance 15% • Homework 15% • 3 Quizzes 45% • Team project 25%

  4. Homework • 15% 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. Assignment operator = > x= 1; > x = 2*x+1; The value of x is 3 not -1 ; Some Syntax

  10. Predefined Variables • ans • pi p • eps 2^(-52) about 2.22e-16 • inf 1/0 • i sqrt(-1) • j Same as i • NaN Not 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

More Related