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

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.

Respuestas (0)

Categorías

Etiquetas

Preguntada:

el 24 de Mzo. de 2022

Comentada:

Jan
el 24 de Mzo. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by