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?

채택된 답변

David Hill
David Hill 2023년 2월 21일
F= 1 -((1-prob1).*(1-prob2).*(1-prob3));

추가 답변 (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));

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by