How to calculate confidence interval from array matrix

I have a 3 x 3 matrix data, for example as follows:
0.2 0.4 1.2; 0.9 1.8 0.1; 0.7 0.6 1.0
From the array, I would like to calculate how many data (percentage form) lies and how much = 1? Then, if 95% of data => 1 the result is pass and if less than that it would give failure result.
Thanks for the help

2 件のコメント

José-Luis
José-Luis 2017 年 8 月 29 日
What have you tried so far?
Just google "matlab logical indexing" and a wealth of solutions to your problem should appear.
Just a quick pointer:
sum(data(:) == 1)
Alya Z
Alya Z 2017 年 8 月 30 日
ok thank you

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2017 年 8 月 29 日

コメント済み:

2017 年 8 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by