How plot data as histograms?
3 次查看(过去 30 天)
显示 更早的评论
I have following data as:
[numb] = xlsread('NorskPetroleum.xlsx');
Years = numb(:,1);
Oil = numb(:,2);
condensate= numb(:,3);
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
0 个评论
采纳的回答
the cyclist
2022-10-9
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.
2 个评论
the cyclist
2022-10-9
If you google the words matlab and legend, the top hit would also certainly be the documentation for the legend function.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!