product between doubles 200*200

2 次查看(过去 30 天)
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 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by