How would I add titles to this subplot?
1 次查看(过去 30 天)
显示 更早的评论
for i = 1:7 %run 7 times i is the number of loop
[Rev, Inv] = hw5_NC_function(300, 300, 300);
RevWeek(i) = Rev;
t = 1:size(Inv,1);
for kk= 1:3
subplot(3,1,kk); plot(t,Inv(:,kk));
hold on
end
end
5 个评论
Paul Huxel
2018-10-9
With regard to placing a title over all three of the subplots, starting in R2018b, you can use sgtitle to add a title to subplot grids:
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Title 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!