Divide histogram in three parts
2 ビュー (過去 30 日間)
古いコメントを表示
Hi, I want to divide the histogram in three parts and define the ranges of three parts.
minRed = min(red(:));
maxRed = max(red(:));
AvgRed = (minRed+maxRed)/3;
AvgRed2 = AvgRed+AvgRed;
But sometimes the value of AvgRed becomes less than minRed and value of AvgRed2 exceeds the maxRed. What is the correct way to do this?
0 件のコメント
採用された回答
Walter Roberson
2017 年 2 月 28 日
A + (B - A) /3
A + (B - A) /3 *2
2 件のコメント
Walter Roberson
2017 年 2 月 28 日
1-0.5459 is 0.4541. Divide by 3 gives 0.15136. Add 0.5459 gives 0.69726.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!