Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Lecture7

930 views

Published on

Published in: Engineering
  • Be the first to comment

Lecture7

  1. 1. Lecture 7 Solving linear equation Eng. Mohamed Awni Electrical & Computer Engineering Dept.
  2. 2. Agenda 2 Relational Operators Determinant & inverse of a matrix Solving linear equations  Exercise
  3. 3. Relational Operators Relational operators Produce logical values (true OR false) (One or zero) >> 5>2 ans = 1 >> 5<4 ans = 0 >> 1.5<=1.5 ans = 1 >> 2>=pi ans = 0 ans = 0 >> 1.8==1.801
  4. 4. • When relational operators are used on arrays, the relational operator is applied element-by-element Relational Operators • Produces a logical array with the same dimensions as the original operands
  5. 5. Relational Operators in images
  6. 6. Determinant & inverse of a matrix det(v) • Return the determinant of the square matrix. • Matrix must be square • Matrix must be square Inv (v) • Is a matrix such that when multiplied on the right or on the left by the given matrix, yields the identity matrix; I
  7. 7. Determinant & inverse of a matrix For a square matrix to have an inverse, its determinant must be non- zero value,
  8. 8. Solving linear equations
  9. 9. Solving system of linear equations using the inv() function
  10. 10. Raise the power of A to -1 left division () operator
  11. 11. Exercises

×