Mutiply 2 matrix operations at the same time using a function

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 日

0 投票

function [M1 M2] = MatMult(A,B,C)
M1 = A*B;
M2 = A*C;
end

4 件のコメント

Luis Gonzalez
Luis Gonzalez 2022 年 2 月 19 日
literally said that without using the * asterisk
Torsten
Torsten 2022 年 2 月 19 日
What exactly are you trying to do ? Your question is very unclear. Please give an example.
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))

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeOperating on Diagonal Matrices についてさらに検索

製品

リリース

R2020b

質問済み:

2022 年 2 月 19 日

コメント済み:

2022 年 2 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by