Mutiply 2 matrix operations at the same time using a function
Mostrar comentarios más antiguos
i wanna know how to make 2 operations of matrix multiplication in one function for example A and B , A and C without using the asterisk of course
Respuestas (1)
Torsten
el 19 de Feb. de 2022
function [M1 M2] = MatMult(A,B,C)
M1 = A*B;
M2 = A*C;
end
4 comentarios
Luis Gonzalez
el 19 de Feb. de 2022
Torsten
el 19 de Feb. de 2022
What exactly are you trying to do ? Your question is very unclear. Please give an example.
Luis Gonzalez
el 19 de Feb. de 2022
Torsten
el 19 de Feb. de 2022
I'd say not only not so simple - impossible.
Or maybe you can use
a*b = exp(log(a)+log(b))
Categorías
Más información sobre Operating on Diagonal Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!