我想给这个图一个标题,这取决于每次迭代。可能会提及当前迭代的数字i的东西:
for i = 0:(N-1) figure('Name','i','NumberTitle','on') subplot(2,2,1) ... title('Subplot 1') subplot(2,2,2) ... title('Subplot 2') subplot(2,2,3) ... title('Subplot 3') subplot(2,2,4) ... title('Subplot 4') end
理想情况是:
figure('Name','for the object',i,'NumberTitle','on')
这不起作用。有什么办法吗?
我想给这个图一个标题,这取决于每次迭代。可能会提及当前迭代次数i的东西:对于i = 0:(N-1)图(“名称”,“ i”,“ NumberTitle”,“ ...
您需要通过串联创建图形名称字符串: