Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6) Write a MATLAB function that performs matrix multiplication of two matrices sent in the input list. That is, write the nested FOR-END loops needed

6) Write a MATLAB function that performs matrix multiplication of two matrices sent in the input list. That is, write the nested FOR-END loops needed to perform multiplication. Dont use the built in matrix operation (*). Your function should send a message if the two matrices entered violate the rules on matrix dimensions. Test your function by solving parts 1, 2, 4 and 5 above. For 4 and 5, use the built in =, -, and transpose as necessary, but use your own function to multiply. Turn in a diary file with results along with your function and a main program that accesses your function to solve 1, 2, 4 and 5. Turn in all hand calculations. Turn in a pseudocode for your function.image text in transcribedJust do #6 please

Solve the following matrix problems by hand. Show your work for credit (write out each of the dot products). 1) A B where and A = [2 63]and 3 23 2) B*A where A and B are the same as in (1) 3) Explain why you get an error message in MATLAB for the following: >> x = 1945 9]; >> y=x^2; and why does this work? >> y=x. 2 what's the difference? Solve by hand: 12 31 10 9 8 7 4) ATB where T denotes transpose, and A = 4 5 and B = -6 -5 -4 -3 2 1 0 -11 5) Verify the answers above using MATLAB commands. Turn in a diary file along with a main program that contains all the statements needed for all the above calculations. Use the built in MATLAB matrix operators (+,-* ') and hardwire the necessary matrices into the program. 6) Write a MATLAB function that performs matrix multiplication of two matrices sent in the input list. That is, write the nested FOR-END loops needed to perform multiplication. Don't use the built in matrix operation (*). Your function should send a message if the two matrices entered violate the rules on matrix dimensions. Test your function by solving parts 1, 2, 4 and 5 above. For 4 and 5, use the built in -, -, and transpose as necessary, but use your own function to multiply. Turn in a diary file with results along with your function and a main program that accesses your function to solve 1, 2, 4 and 5. Turn in all hand calculations. Turn in a pseudocode for your function

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions