How can I count number of bars in a bar graph?

10 views (last 30 days)
Zara Khan
Zara Khan on 24 Jun 2018
Commented: Zara Khan on 25 Jun 2018
hold on;
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?

Answers (1)

Image Analyst
Image Analyst on 24 Jun 2018
Try adding this:
numBars = length(xticks)
since for every bar group you'll have a tick mark.
Zara Khan
Zara Khan on 25 Jun 2018
I am trying to extract some features from it. But unable to do so till now. Moreover this xticks not working in R2014b.

Sign in to comment.


Find more on Discrete Data Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!