find probability of some data
조회 수: 2 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (1개)
the cyclist
2023년 6월 7일
data = [2 3 5 7 11 13 17];
constant = 6;
probabilityDataLessThanConstant = mean(data<constant)
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!