Professional Documents
Culture Documents
ENGR 3032 2068 Report-3
ENGR 3032 2068 Report-3
Faculty of Engineering
Department of Electrical
كلية الهندسة
Engineering قسم الهندسة الكهربائية
ENGR 3032
LAB 3
Submitted To
Dr. Abdulmajeed Alenezi
Submitted By
Sultan Momar Alshalabi
422039543
51 23 12
a= [30 18 15]
44 63 92
b= [11 8 2]
c= [72 38 55 82]
Answer:
Answer:
Task 3
1. Create a 4 × 6 matrix in which all the elements have a value of pi.
2. Create a 6 × 6 magic matrix.
a) What is the sum of each of the rows?
b) What is the sum of each of the columns?
c) What is the sum of each of the diagonals?
3. Create a 10 × 10 magic matrix.
a) Extract the diagonal from this matrix.
b) Extract the diagonal that runs from lower left to upper right from this matrix.
c) Confirm that the sums of the rows, columns, and diagonals are all the same.
Task 4
1. Using the xlsread function perform the following operations:
a. Extract the scores and the student ID for the 7 th student into a row vector named student_5 .
b. Extract the scores for the Lab Experiment into a column vector named Lab.
c. Find the standard deviation and variance for the total score and for the lab experiment.