What is the procedure to find the Histogram coefficients?

2 ビュー (過去 30 日間)
pavan kumar
pavan kumar 2021 年 8 月 6 日
回答済み: pavan kumar 2021 年 8 月 6 日
What is the procedure to find the Histogram coefficients?

採用された回答

Megan Jurczak
Megan Jurczak 2021 年 8 月 6 日
Not sure exactly what you mean...You can use hist() if I am understanding the question correctly.
As an example, if you had a matrix A as follows:
A = [ 1 1 1 3 4 5 7];
In order to find the number of times that each unique value appears you would use hist() as follows:
[N,X] = hist(A, unique(A))
N = 3 1 1 1 1
X = 1 3 4 5 7
Where N is what I assume you refered to as the coefficient (# of times each value appears), and X is the value from A associated with that count.

その他の回答 (1 件)

pavan kumar
pavan kumar 2021 年 8 月 6 日
what variance /meansquare will give ?

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by