replace values in a matrix by their histogram bin numbers

1 回表示 (過去 30 日間)
SChow
SChow 2022 年 1 月 19 日
編集済み: KSSV 2022 年 1 月 19 日
I have a large matrix 10000x10000
As I draw a histogram by 10 bins, I was wondering if there is a simple way by which I can replace each element in the matrix by the corresponding bin numbers.
Thanks

採用された回答

KSSV
KSSV 2022 年 1 月 19 日
編集済み: KSSV 2022 年 1 月 19 日
[N,E,bins] = histcounts(A) ;

その他の回答 (0 件)

カテゴリ

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