Question: 1. Gilat - Chapter 3 problem 14 (use the following filename system: lastname _3workmatrix_ firstinitial.m) Use a single M-file for this problem and use mnemonic
1. Gilat - Chapter 3 problem 14 (use the following filename system: lastname _3workmatrix_ firstinitial.m) Use a single M-file for this problem and use mnemonic variable names of 3 characters or more in the M-file for parts a), b), c) and d). Do not use variables A, B, C. Students should use their first name as the variable name for the matrix A. Students should use their middle name as the variable name for the matrix B. Students should use their last name as the variable name for the matrix C. If students do not have a middle name, students should use the variable middle_name. Abbreviations for too long last names or hyphenated names are acceptable. Show calculations in Matlab. Let Matlab do the work.
14. Create the following three matrices: 5 2 4 7 14 1 103-2 8-5 9 A1 7 -3 B-0-12 4 6-10 0 a) Calculate A+B and B+A to show that addition of matrices is commuta b) Calculate A+(B+C) and (A B)+ C to show that addition of matrices is c) Calculate 5(A+C) and 5A+5C to show that, when matrices are multi- d) Calculate A*(B + C) and A*B +A"C to show that matrix multiplication is tive. associative. plied by a scalar, the multiplication is distributive. distributive
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
