2016-06-28 24 views

回答

3

可以創建ylabel對象,然後手動調整它的屬性:'Position''Rotation'

plot(1:.1:10, (1:.1:10).^2); % example plot 
t = title('Title'); 
y = ylabel('ylabel'); 
vf = 1.125; % vertical factor. Adjust manually 
dy = .55; % horizontal offset. Adjust manually 
tpos = get(t, 'Position'); 
theight = tpos(2); 
ypos = get(y, 'Position'); 
set(y, 'Position', [ypos(1)+dy tpos(2)*1.02 ypos(3)], 'Rotation', 0) 

這給瞭如下圖所示:

enter image description here