bar graph inside loop
7 次查看(过去 30 天)
显示 更早的评论
for i = 1:4
enkwh=0;
data{i} = xlsread(filename11,i);
figure
PP=bar(data{i},'stacked');
xlabel('timeframe')
ylabel('loads')
title (sprintf('On status of loads before scheduling %d',i))
end
this is my code.
I am reading an excel file with 4 sheets in it.
When i am plotting, instead of 4 bar graphs i am getting 3 only
i=1 bar graph is not plotted.
i am getting only for i=2,3,4
can somebody tell me why it is happening
2 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!