EGR 106 Intro to Engineering II - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

EGR 106 Intro to Engineering II

Description:

If you can not solve a problem, get help. 10 point scale for each assignment ... Get your free (almost) copy of MATLAB for your PC from the wizards at ECL (Kirk203) ... – PowerPoint PPT presentation

Number of Views:40
Avg rating:3.0/5.0
Slides: 12
Provided by: james245
Learn more at: http://www.ele.uri.edu
Category:

less

Transcript and Presenter's Notes

Title: EGR 106 Intro to Engineering II


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_at_egr.uri.edu
  • 874-5844 (Office) 789-0654(Home) 742-5759(Cell)

3
Grading
  • Attendance 15
  • Homework 30
  • 3 Quizzes 30
  • Team project 25

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 22
  • Subtraction - 3-2
  • Multiplication 36
  • Right Division / 7/3
  • Left Division \ 7\3 3/7
  • Exponentiation 23 8

7
Precedence
  • Precedence is the order operations are preformed
  • (32) anything in parentheses is done first
  • 52 exponentiation is next
  • 22 or 10/5 multiplication or division next
  • 11 or 5-3 addition or subtraction next
  • Operations are done from left to right

8
Precedence Example
  • 2(6/2) 23 8
  • 26/2 64/2 32

9
Some Syntax
  • Assignment operator
  • gt x 1
  • gt x 2x1
  • The value of x is 3 not -1

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
Write a Comment
User Comments (0)
About PowerShow.com