Question

Problem 4: If you have two matrices, A and B, and the MATLAB outputs of size (A) and size(B) are [3 2] and [2 4], respectively, what is the output of size(A*B)? What is the output of size(B*A)? Explain why the outputs are what they are. Problem 5: If you have two vectors a[1 2 3 4] and b -[2 3 4 5], what is the output of a*b? What is the output of a.*b? Explain why the outputs are what they are. Problem 6: Ifyou have two matrices, A [1 2 3; 4 5 6; 7 8 9] and Bones (3) what is the output of A*B? What is the output of A.*B? Explain why the 2 EGM 3344 INTRODUCTION TO NUMERICAL METHODS OF ENGINEERING ANALYSIS outputs are what they are.

Problem 4 I need all of it, the other two I just need the explanations at the ends.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

To find AB, we must be sure to find the dot product between each row in A and each column in B. So, the resulting matrix will have the same number of rows as matrix A3×2?, and the same number of columns as matrix B2×4 so the resulting matrix will be of size[3,4] in case of AB

in case of BA the multiplication wont be possible as number of columns in B != number of rows in A.

Add a comment
Know the answer?
Add Answer to:
Problem 4 I need all of it, the other two I just need the explanations at...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT