# product between doubles 200*200

5 visualizzazioni (ultimi 30 giorni)
ELISABETTA BILLOTTA il 21 Feb 2023
Commentato: Stephen23 il 22 Feb 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?
##### 1 CommentoMostra -1 commenti meno recentiNascondi -1 commenti meno recenti
Stephen23 il 22 Feb 2023
Understanding the difference is critical to using MATLAB:

Accedi per commentare.

### Risposta accettata

David Hill il 21 Feb 2023
F= 1 -((1-prob1).*(1-prob2).*(1-prob3));
##### 1 CommentoMostra -1 commenti meno recentiNascondi -1 commenti meno recenti
ELISABETTA BILLOTTA il 22 Feb 2023
thanks!

Accedi per commentare.

### Più risposte (1)

Anton Kogios il 21 Feb 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));
##### 1 CommentoMostra -1 commenti meno recentiNascondi -1 commenti meno recenti
ELISABETTA BILLOTTA il 22 Feb 2023
thanks!

Accedi per commentare.

### Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by