Question

CHAPTER 2 MATLAB EXERCISES QUESTION 1: Enter the matrices A=[0 -4 5] and B= [-5 6...

CHAPTER 2 MATLAB EXERCISES QUESTION 1:

Enter the matrices A=[0 -4 5] and B= [-5 6 7]

3 1 -2 0  -1 2

2 1 4 4 0 -3

USE MATLAB to find a) A + B

b) B - 3A

c) AB

d) BA

QUESTION 6:

ENTER THE THREE MATRICES A= [1 2 3 4] B= [4 -6 3 5]

2 3 4 5 0 -3 -6 8

3 4 5 6   3 5 0 7

4 5 6 7 -1 0 7 9

C= [16 -1 4 -1]

-3 12 -7 8

4 -5 0 0

-14 3 2 8

a) Calculate AB-AC and A (B-C). What do you observe?

b) Calculate 3(AC), A(3C), and (3A)C. What do you observe?

Homework Answers

Answer #1

Question 1

Code

A=[0 -4 5;3 1 -2;2 1 4]
B=[-5 6 7;0 -1 2;4 0 -3]
disp('(a) A+B')
A+B
disp('(b) B-3A')
B-3*A
disp('(c) AB')
A*B
disp('(d) BA')
B*A

Output

Question 6

Code

A=[1 2 3 4; 2 3 4 5; 3 4 5 6; 4 5 6 7]
B=[4 -6 3 5;0 -3 -6 8;3 5 0 7;-1 0 7 9]
C=[16 -1 4 -1;-3 12 -7 8; 4 -5 0 0;-14 3 2 8 ]
disp('(a)')
disp('AB-AC')
A*B-A*C
disp('A(B-C)')
A*(B-C)
disp('(b)')
disp('3(AC)')
3*(A*C)
disp('A(3C)')
A*(3*C)
disp('(3A)C')
(3*A)*C

Output

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
A (–4, –1, 2), B (3, –2, –1) and C (–1, 3, –4), AB= 7? −...
A (–4, –1, 2), B (3, –2, –1) and C (–1, 3, –4), AB= 7? − ? − 3? CB = 4? − 5? + 3? AC = 3? + 5? - 2? Question 7: Express the vector AC as the sum of two vectors: AC = ? + ?, where ? is parallel to the vector CB and ? is perpendicular to CB. Given that AC ∙ CB = −26 and that CB = √50, determine the y-component of...
Refer to the following matrices. A = 1 −8 7 −3 −18 6 5 8 6...
Refer to the following matrices. A = 1 −8 7 −3 −18 6 5 8 6 0 5 8 3 4 8 −2     B = 4 −7 4 0 1 4 9 5 3 −3 0 9 C = 1 0 3 2 8     D = 1 9 −7 0 What is the size of each matrix? A     ____× ____ B     _____× _____ C     ____× ____ D     ____× _____
Perform the following matrix multiplications A = [2   5   6]       [-3 0   1] B =...
Perform the following matrix multiplications A = [2   5   6]       [-3 0   1] B = [ 1]        [ 3]        [-4] C = [-2   10   1] 6a. Find AB 6b. Find BC 6c. Find AC
write the following matrices as a product of elementary matrices: a) 1 2 4 9 b)...
write the following matrices as a product of elementary matrices: a) 1 2 4 9 b) 1 -2 -1 -1 5 6 5 -4 5 c) 1 0 -2 -3 1 4 2 -3 4
1. Determine the order of following matrices: (a) A= [1 2 4] (b) B= 1 2...
1. Determine the order of following matrices: (a) A= [1 2 4] (b) B= 1 2 3 a b c (c) C= 1 2 3 0 a 0 c -1 a b c 2 2. Write the augmented matrix for the system of linear equations. (a) 2x + 3y +7z =1 3x-2z= -1 3. Write the matrix in row-echelon form: 1 2 -1 3 3 7 -5 14 -2 -1 -3 8 4. Write the partial fraction decomposition of the...
exampleInput.txt 1 2 3 0 2 3 4 0 1 3 5 0 1 2 6...
exampleInput.txt 1 2 3 0 2 3 4 0 1 3 5 0 1 2 6 1 5 6 8 2 4 6 7 3 4 5 9 10 5 8 9 4 7 9 6 7 8 6 How can I detect when 'cin' starts reading from a new line. The amount of numbers in each row is unknown. I need them in type 'int' to use the data. Also, it will be executed like so, "./a.out < sampleInput.txt".
let the universal set be U = {1, 2, 3, 4, 5, 6, 7, 8, 9}...
let the universal set be U = {1, 2, 3, 4, 5, 6, 7, 8, 9} with A = {1, 2, 3, 5, 7} and B = {3, 4, 6, 7, 8, 9} a.)Find (A ∩ B) C ∪ B b.) Find Ac ∪ B.
I) Use MATLAB to compute the determinants of the following two matrices.   (Use format rat) P                         &
I) Use MATLAB to compute the determinants of the following two matrices.   (Use format rat) P                                         Q 5 0 0 0 -1 -1 1 1 13 2 0 0 2 0 1 3 -6 4 -1 0 2 -1 1 2 10 0 3 -2 1 0 3 3 II) The determinant of P could be computed without MATLAB. What general fact could have been used to do this? III) Use MATLAB to compute the matrix R= PQ and also...
Let A = {0, 3, 6, 9, 12}, B = {−2, 0, 2, 4, 6, 8,...
Let A = {0, 3, 6, 9, 12}, B = {−2, 0, 2, 4, 6, 8, 10, 12}, and C = {4, 5, 6, 7, 8, 9, 10}. Determine the following sets: i. (A ∩ B) − C ii. (A − B) ⋃ (B − C)
QUESTION 17 If A = { 1, 2, 3, 4 }    B = {  3, 4, 5...
QUESTION 17 If A = { 1, 2, 3, 4 }    B = {  3, 4, 5 }   C = { 5, 7, 8, 9 } then A ∩   C U  B  equals { 3, 5 } { 3, 4, 5 } { 4, 5 } None of the above QUESTION 19 What is the Cartesian product A x B given  A = {1, 2} and B = {a, b}? { (1, a), (1, b), (2, a), (b, b) (a, a)} { (1, 1), (2, 2),...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT