How can I count number of bars in a bar graph?
7 ビュー (過去 30 日間)
古いコメントを表示
figure;
imshow(Image);
pix=impixel(Image,X,Y);
hold on;
plot(X,Y,'LineWidth',2);
figure;
bar(pix,'r');
I have plotted this pix using a bar graph which is a continuous data set. Now how to count the no of bars in this graph and how I will calculate the distances from both the axes to each of the bar?and how to store all these values to an excel file. I am getting many graphs as my folder consisting of 50 images. How to do this?
0 件のコメント
回答 (1 件)
Image Analyst
2018 年 6 月 24 日
Try adding this:
numBars = length(xticks)
since for every bar group you'll have a tick mark.
5 件のコメント
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!