Mutiply 2 matrix operations at the same time using a function

조회 수: 3 (최근 30일)
Luis Gonzalez
Luis Gonzalez 2022년 2월 19일
댓글: Torsten 2022년 2월 19일
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

답변 (1개)

Torsten
Torsten 2022년 2월 19일
function [M1 M2] = MatMult(A,B,C)
M1 = A*B;
M2 = A*C;
end
  댓글 수: 4
Luis Gonzalez
Luis Gonzalez 2022년 2월 19일
look im trying to make a function that multiplies 2 operations of matrix at the same time for example
there's matrix A, matrix B and matrix C
i want a code that will multiply in one function A times B, and A times C and show the results of each one at the same time
WITHOUT USING THE "*" asterisk , so not simple
Torsten
Torsten 2022년 2월 19일
I'd say not only not so simple - impossible.
Or maybe you can use
a*b = exp(log(a)+log(b))

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by