我有以下脚本最终绘制 4 x 2 子图:
files = getAllFiles('preliminaries');
n = size(files);
cases = cell(1, n);
m = cell(1, n);
for i = 1:1:n
S = load(files{i});
cases{i} = retransmission_distribution(S);
c = size(cases{i});
m{1,i} = cell(1, c(2));
%figure(i);
str_size = size(files{i});
title_str = files{i}(5:str_size(2) - 4);
title_str = strrep(title_str, '_', ' ');
%title(title_str);
for j = 1:1:c(2)
[x, y] = hist(cases{i}{1,j});
m{1,i}{1,j} = [x; int32(y)];
% subplot(4, 2, j);
% xlabel('Number of Retransmissions');
% ylabel('Number of Occurrences');
% bar(y, x, 'histc');
end
end
然而,按照我目前的命令顺序,即使没有注释,标题和轴标签在被删除之前也存在了一段时间。我希望该图有自己的标题,每个子图都有自己的轴标签。修复它的最简单方法是什么?