フィルターのクリア

how to title each subplot and one Xlabel and one Ylable for all the subplots?

3 ビュー (過去 30 日間)
Hydro
Hydro 2017 年 9 月 19 日
コメント済み: Hydro 2017 年 9 月 19 日
Hello all, I am using for-loop to plot three different data source on each plot. To do so, I have written the following script. The question is, how to xlabel the bottom line plots only from (Jan -Dec instead 1 to 12) and on the y-axis the leftmost plots only (column one).I would also like to have one big label for the x-axis that shows Duration in months and one big y-axis label showing Temperature in degrees Centigrade.
X=1:12;
y1=randn(12,45);
y2=y1+2;
y3=y2+1;
figure(1)
for i=1:45
subplot(5,9,i);
plot(X,y1(:,i));
hold on
plot(X,y2(:,i));
plot(X,y3(:,i));
hold off
axis tight
title(['Subbasin', num2str(i)])
end
legend('EC','RAW RCM','CRCM')

採用された回答

Image Analyst
Image Analyst 2017 年 9 月 19 日
  1 件のコメント
Hydro
Hydro 2017 年 9 月 19 日
Thank you, I got quite a few ideas from the link.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by