필터 지우기
필터 지우기

find probability of some data

조회 수: 2 (최근 30일)
Imp
Imp 2023년 6월 7일
답변: the cyclist 2023년 6월 7일
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?

답변 (1개)

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

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by