|
在subplot绘制完一个图形后追加ylabel函数就好了。) Z* |7 s8 I3 l( y
x = -pi:pi/19:pi;$ q! U/ ~0 Z$ I% ]8 b0 x" J
figure;
( K# I% s$ j9 `: @subplot(311)8 ~( @$ o, o# F1 S5 S Y, x
plot( x, sin(x) );3 G, X$ q+ L7 [" I! h4 U( _% x4 h( h
ylabel('y_{1}')
( S; b9 f+ [6 m* }( L3 i5 u4 Asubplot(312)
5 R4 J! n4 Z( t! B$ m5 Y# d7 Aplot( x, cos(x) );
9 m! B5 C- k. P; c1 V* d, d1 H' Tylabel('y_{2}')6 K) O% J8 R' g5 r: L0 }. M4 v1 `; o9 I
subplot(313)2 I5 p/ }" x3 o& A+ r6 y; n5 S) [
plot( x, tan(x) );7 }* N# F6 |# E# q3 b
ylabel('y_{3}') |
|