
plotmatrix 関数で作成された各サブプロットに xlabel や ylabel を追加できますか?
6 views (last 30 days)
Show older comments
MathWorks Support Team
on 13 Dec 2017
Answered: MathWorks Support Team
on 13 Dec 2017
plotmatrix 関数で作成された各サブプロット(Axes) に対して、行・列方向にラベルを付けたいのですが、xlabel や ylabel でタイトルを付けること方法を教えてください。
Accepted Answer
MathWorks Support Team
on 13 Dec 2017
以下のように、plotmatrix 関数の第 2 出力引数で得られた Axes のハンドルを使用して xlabel, ylabel を実行することが可能です。
X = rand(20,3);
[~,ax] = plotmatrix(X);
ylabel(ax(1,1),'var1')
ylabel(ax(2,1),'var2')
ylabel(ax(3,1),'var3')
xlabel(ax(3,1),'var1')
xlabel(ax(3,2),'var2')
xlabel(ax(3,3),'var3')

0 Comments
More Answers (0)
See Also
Categories
Find more on データ分布プロット in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!