product between doubles 200*200

1 visualización (últimos 30 días)
ELISABETTA BILLOTTA
ELISABETTA BILLOTTA el 21 de Feb. de 2023
Comentada: Stephen23 el 22 de Feb. de 2023
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?

Respuesta aceptada

David Hill
David Hill el 21 de Feb. de 2023
F= 1 -((1-prob1).*(1-prob2).*(1-prob3));

Más respuestas (1)

Anton Kogios
Anton Kogios el 21 de Feb. de 2023
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));

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by