Effacer les filtres
Effacer les filtres

display pass if 95% of the value below one value

2 vues (au cours des 30 derniers jours)
KS
KS le 30 Août 2017
Commenté : KS le 4 Sep 2017
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.

Réponse acceptée

ES
ES le 30 Août 2017
dataIn = rand(1,80);
if (sum(dataIn>.35)/numel(dataIn)>.95)
disp('PASS');
else
disp('FAIL');
end
  1 commentaire
KS
KS le 4 Sep 2017
Thank you so much J Smith. It works!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by