필터 지우기
필터 지우기

display pass if 95% of the value below one value

조회 수: 1 (최근 30일)
KS
KS 2017년 8월 30일
댓글: KS 2017년 9월 4일
Hi,
I'm having a problem with the statistical evaluation. Help me to solve the issue.
I have a bar chart of position difference (cm) against date. So let say I have collect 80 days of data. I want to display 'pass' if 95% of all the data collected is below 0.35 cm and 'fail' in contrast.
Thank you in advance.

채택된 답변

ES
ES 2017년 8월 30일
dataIn = rand(1,80);
if (sum(dataIn>.35)/numel(dataIn)>.95)
disp('PASS');
else
disp('FAIL');
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by