How plot data as histograms?
2 views (last 30 days)
Show older comments
Nisar Ahmed on 9 Oct 2022
Commented: the cyclist on 9 Oct 2022
I have following data as:
[numb] = xlsread('NorskPetroleum.xlsx');
Years = numb(:,1);
Oil = numb(:,2);
NGL = numb(:,4);
Gass = numb(:,5);
Sum = numb(:,6);
Each of size is 52 1,
I want to plot my data in the form of histogram as plot(years, other quantiaties) as
This is not a histogram. It is a stacked bar chart. Take a look at this documentation to see how to construct this type of chart.
If you google the words matlab and legend, the top hit would also certainly be the documentation for the legend function.
More Answers (0)
Find more on Histograms 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!