Breaking up data into intervals and matching to other data set

Hi there,
I have 2 data sets both consisting of 92 values (or 92 days). The first consists of rainfall data between 0 and 0.6mm. I would like to break the data up into 7 categories, days with 0 rainfall, 0-0.1mm, 0.1-0.2, 0.2-0.3, ect.
I then want to to match the days in which there was, ie. 0mm, to the corresponding days in the other data set (carbon concentration). And then say there were 10 days where there was 0 rainfall, make an average carbon concentration of those 10 days.
And then create a bar graph, comparing carbon concentration at 0mm, 0-0.1, 0.1-0.2, ect. (something like in the attached JPEG)
Any help would be much appreciated,
Cheers :D
Have included data.

1 Comment

So, what have you done so far, and where did you get stuck?

Sign in to comment.

Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Asked:

on 27 Apr 2019

Commented:

dpb
on 27 Apr 2019

Community Treasure Hunt

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

Start Hunting!