How would I add titles to this subplot?

2 ビュー (過去 30 日間)
Nicholas Costa
Nicholas Costa 2018 年 3 月 1 日
コメント済み: Walter Roberson 2018 年 10 月 9 日
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
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:
Walter Roberson
Walter Roberson 2018 年 10 月 9 日
Thanks for the update, Paul.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeTitle についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by