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 CenterFile Exchange에서 Title에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by