Azzera filtri
Azzera filtri

find probability of some data

2 visualizzazioni (ultimi 30 giorni)
Imp
Imp il 7 Giu 2023
Risposto: the cyclist il 7 Giu 2023
I have some data in simulink, I want to know what is the probability of these data to be less than some determined constant number?
is there any function or way in matlab to find it?

Risposte (1)

the cyclist
the cyclist il 7 Giu 2023
data = [2 3 5 7 11 13 17];
constant = 6;
probabilityDataLessThanConstant = mean(data<constant)
probabilityDataLessThanConstant = 0.4286

Categorie

Scopri di più su Modeling 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