product between doubles 200*200

1 回表示 (過去 30 日間)
ELISABETTA BILLOTTA
ELISABETTA BILLOTTA 2023 年 2 月 21 日
コメント済み: Stephen23 2023 年 2 月 22 日
I have a series of 200x200 doubles (they are probability values live prob1=200x200).
I have to do the multiplication between these doubles following this formula
F=1-((1-prob1)* (1-prob2)* (1-prob3))
how can i set up this formula and this multiplication?
  1 件のコメント
Stephen23
Stephen23 2023 年 2 月 22 日
Understanding the difference is critical to using MATLAB:

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

採用された回答

David Hill
David Hill 2023 年 2 月 21 日
F= 1 -((1-prob1).*(1-prob2).*(1-prob3));
  1 件のコメント
ELISABETTA BILLOTTA
ELISABETTA BILLOTTA 2023 年 2 月 22 日
thanks!

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

その他の回答 (1 件)

Anton Kogios
Anton Kogios 2023 年 2 月 21 日
I assume you mean element by element multiplication:
prob1 = rand(200,200);
prob2 = rand(200,200);
prob3 = rand(200,200);
F = 1-((1-prob1).*(1-prob2).*(1-prob3));
  1 件のコメント
ELISABETTA BILLOTTA
ELISABETTA BILLOTTA 2023 年 2 月 22 日
thanks!

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

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by