62
Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

Embed Size (px)

Citation preview

Page 1: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

1Lecture (2)

Vectors, MatricesEng. Osama Talaat

Page 2: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

2 Introduction

Page 3: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

3 Introduction

Rotate

Page 4: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

4 Introduction

Create Border

Page 5: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

5 Vector Definition

Page 6: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

6 Regular Vector

Page 7: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

7 Regular VectorA = [0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5]

Page 8: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

8 Test Yourself

الفردية الواقعة األعدادأوجد 75 و 5بين

Page 9: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

9 Test YourselfA = [ 1 2 3 … 15 20 ]

Page 10: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

10 Test Yourself

Page 11: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

11 Regular Vector

0 25

Page 12: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

12 Vector Length

Page 13: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

13 Transpose

Page 14: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

14 Transpose

Page 15: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

15 Transpose

Try it !!

Dot Operator

Page 16: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

16 Vector Addressingx = [2 3 4 12 15 14]

العنصر الخامس

العنصر األخيرTry it !!

1 2 3 4 5 6

Page 17: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

17 Vector Addressingx = [2 3 4 12 15 14]

2العناصر من 4إلى

2العناصر من إلى اآلخر

العناصر ذات الترتيب الفردي

1 2 3 4 5 6

Page 18: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

18 Adding elements to vector

إضافة قيمة

Page 19: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

19 Adding elements to vector

إضافة عدة قيم

Page 20: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

20 Adding elements to vector

إضافة قيمة في

غير ترتيبها

Page 21: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

21 Changing vector elements

Page 22: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

22 Changing vector elements

Page 23: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

23 Deleting vector elements

Page 24: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

24 Deleting vector elements

Page 25: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

25 Vector Statistics

مجموع العناصر

حاصل ضرب العناصر

متوسط العناصر

Page 26: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

26 Vector Statistics

ترتيب العناصر تصاعديا

ترتيب العناصر

تنازلياTry it!!

Page 27: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

27 Vector Statistics

Maximum Value

Search help to find

maximum locatio

n

Page 28: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

28 Vector Statistics

Minimum Value

Minimum valuelocatio

n

Page 29: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

29 Vector Statistics

المتوسط

الوسيط

أكثر قيمة متكررة

Page 30: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

30 Set Operations

التقاطع

االتحاد

إزالة المكرر

Page 31: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

31 Set Operations

الفرق

Page 32: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

32 Vector Application: Polynomial

جذور المعادلة

Substitutex=3

∴5 𝑥3−7 𝑥2−3=0

Page 33: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

33 Vector Application: Polynomial

التفاضل

التكامل

Page 34: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

34 Vector Application: Polynomial

إيجاد كثيرة حدود من

جذورها

Fittingإيجاد أقرب معادلة تعبر

عن قيم داخل جدول تعويض

Page 35: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

35 Vector Application: Polynomial

إدخال المعادلتين

Page 36: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

36 15-Min Break

67

8

121

2

3

4

5

9

10

11

Page 37: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

37 Matrix Definition

The same Number of rows and the same number of

columns

Page 38: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

38 Matrix Definition

Column Vector

Page 39: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

39 Test Yourself

Define the matrix using

Page 40: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

40 Matrix Dimensions

Page 41: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

41 Matrix Dimensions

البعد األول (عدد

الصفوف)

البعد الثاني (عدد األعمدة)

Page 42: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

42 Matrix Addressing

Page 43: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

43 Matrix Addressing

Page 44: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

44 Matrix Addressing

Page 45: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

45 Matrix Addressing

Page 46: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

46 Adding Elements to Matrix

Add row with

different values

Add columns with the

same value

Page 47: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

47 Adding Elements to Matrix

Add single element

Page 48: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

48 Deleting Elements to Matrix

Delete rows 4-6

Delete last

column

Page 49: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

49 Changing Elements to Matrix

Page 50: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

50 Matrix Parts

Diagonal

حاصل ضرب عناصره

Page 51: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

51 Matrix Parts

مجموع عناصره

Page 52: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

52 Matrix Parts

Upper triangle

Lower triangle

Page 53: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

53 Matrix Operations

إدخالالمصفوفة

Transpose

المحدد

Page 54: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

54 Matrix Operations

Page 55: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

55 Matrix Operations

إدخالالمصفوفتين

Page 56: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

56 Matrix Operations

Page 57: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

57 Matrix Operations

ضرب المصفوفا

ت

Page 58: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

58 Matrix Operations

ضرب كل قيمتين

متناظرتين

Page 59: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

59 Matrix Operations: Division

Page 60: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

60 Matrix Operations: Division

قسمة كل قيمتين متناظرتي

ن

Page 61: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

61 Matrix Operations: Power

Square Matrix

تربيع كل عنصر على

حده

Page 62: Lecture (2) Vectors, Matrices Eng. Osama Talaat 1

62GOOD LUCK

To be continued in the next lecture …