Space 图中的消息

Space for messages in figure

在图 (1) 中,我有一个带有标签轴、标题、图例等的图,在这个图下,仍然在图 (1) 中,我想添加一个 space,我可以在其中显示一些我现在在命令 windows.

中显示的行

像这样:

如何操作?

如何利用 subplot

subplot(10,1,1:7);                     %Taking most of the figure space for actual plot
plot(randperm(100),'d-');              %A random plot
xlabel('xlabel');  ylabel('ylabel');   %Axis Labels
legend show;                           %Legend display

subplot(10,1,10);                      %And just one part for the text/messages
xlim([1 10]);                          %For aesthetics
str = {'Comment-1','Comment-2'};       %Text that we want to display
text(1,1,str);                         %Putting the text
axis off;                              %Turning off the axis