![]() |
#2
初学者_1232022-06-29 09:40
|
问题描述:运行结果会显现5各窗口,每个窗口应该有10张子图,但第十张子图就是显现不出来,要怎么修改?
clc
clear;
for p=1:+1:50
if p/10==fix(p/10)
q=fix(p/10);
else
q=fix(p/10)+1;
figure(q);
if mod(p,10)==0
a=p/(fix(p/10));
else
a=mod(p,10);
subplot(5,2,a);
end
end
end