combining two histograms by category
Ältere Kommentare anzeigen
Dear all,
I attach a matlab code that constructs two histograms by category (two categories in total)
I am trying to merge them but
hold on
does not work, which means that there is a bug in my code.
If you could provide some help that would be great.
Note that the first part of the code constructs a histogram by year for caterogory 1.
The second part of the code constructs a histogram by year for caterogory 2.
For the first histogram, the year goes up to 2023.
For the second histogram, the year starts from 2023 up to 2026.
So the second histogram can be easily placed right after the first histogram.
But please note that I want the year 2023 after the merging of the two histograms to be separate for the two catergories; that is I want to have two 2023 years on the x axis.
Hope this helps
Many thanks in advance!
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Histograms finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
