how to define interval and get frequency ?
2 ビュー (過去 30 日間)
古いコメントを表示
hi I have a matrix for ex: [3 5 6;5 7 9;8 3 8;6 5 3]. I want to define six interval with the weight of 1 (9-3=6/6) to have :(3,4) (4,5) (5,6) (6,7) (7,8) (8,9) (how to add up like this ?) and then find the frequency of numbers in intervals. for example it gives me in interval (3 4) frequency is 3. the actual matrix is much bigger thou. Thanks every one!
0 件のコメント
回答 (1 件)
Walter Roberson
2017 年 1 月 28 日
See histogram(). If you are using an older release you might need hist() or histc()
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!