MATLAB frequency histogram problem
1 回表示 (過去 30 日間)
古いコメントを表示
Hey everybody,
I'm having trouble recreating a frequency histogram. The data are exported from an external software as ASCII. Any help is appreciated! This is how it looks: The program returns two column vectors. One vectors contains the occurance/frequency (e.g. 2;0;1 ..), the other the already binned observation (e.g. distances like 150;150.5;151 ..). What I'd like to do now is to generate a vector containing just the (binned) data. According to the above example: (150;150;151). I already tried some loops (though it didn't work and I don't have them at hand right now - there has to be an easy solution for it). One more thing: If I rehistrogram the data with Matlab, will it change the binsize due to the absence of the value 150.5 as mentioned above? Though this should have no effect on the mean? Thanks a lot!
Phil
4 件のコメント
Image Analyst
2014 年 8 月 18 日
Do you mean the values of the centers of the bins? Like let's say one bin goes from 150.0000000 to 151.00000000. Would the value you're talking about be 150.5 (i.e. the value at the center of the bin)?
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!