replace values in a matrix by their histogram bin numbers

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Histograms 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by