2014-11-02 1724 views

回答

2

快速和肮脏的:

hSub = subplot(3,1,1); plot(1,1,1,1,1,1,1,1); 
hLegend = legend('hello','i','am','legend'); 

subplot(3,2,3), plot(10:-1:1); subplot(3,2,4), plot(1:100); 
subplot(3,2,5), stem(1:10); subplot(3,2,6), plot(randn(1,100)) 

set(hLegend, 'position', get(hSub, 'position')); 

enter image description here

+0

我以前尝试这样做,它的缺点是那个传说让主要的小插曲变小了 – ahammadz 2014-11-02 22:19:31

相关问题