Effacer les filtres
Effacer les filtres

Probability of an event

2 vues (au cours des 30 derniers jours)
Kendall Donahoe
Kendall Donahoe le 28 Avr 2020
thankyou

Réponse acceptée

David Hill
David Hill le 28 Avr 2020
You could loop through this many times to attempt to get a better answer.
x=randi(100,100000000,5);
m=[20,63,78,11,45];
s=zeros(100000000,1);
for k=1:5
s=s+double(x(:,k)==m(k));
end
proB=sum(s>=3)/100000000;

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by