Histogram part of data in matrix
1 回表示 (過去 30 日間)
古いコメントを表示
Hello, I would like to see a histogram of a data that stored in 2d matrix that is >0.1. how can I do that? For example in matrix A=[1,2,3;4,5,6]. I want to histogram only data >3. any help will be appreciated.
0 件のコメント
採用された回答
Image Analyst
2012 年 3 月 14 日
Try this:
m = 10*rand(100,1);
[counts, bins] = hist(m(m>3), 50);
bar(bins, counts);
xlim([0 10]);
grid on;
3 件のコメント
Image Analyst
2012 年 3 月 15 日
You can use a line plot with plot() instead of bars with bar() if you want.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Distribution Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!