Dot product of two matrices without using any built-in functions.

2 views (last 30 days)
How to solve this in MATLAB.
Let P be an m × p array and Q be a p × n array. As you will find later in this book, M = P × Q is defined as M[i, j ] = P[i, k] · Q[k,j ]. Write a function my_mat_mult(P, Q) that uses for-loops to compute M, the matrix product of P * Q. Hint: You may need up to three nested for-loops. Do not use the function np.dot.

Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!