matlab


设已有一个figure,它没有subplot
它有n条plot的曲线(n未知)
写一个m-file (script)
把所有Plot曲线的线宽改为2.5
线宽的特征是'linewidth'


题2:这个figure有m个subplot,每个subplot有n条plot(m,n未知)

 for hax = get(gcf, 'children');

for hplot = get(hax, 'children');
set(hplot, 'linewidth', 2.5)
end
end
5行指令
 
for hax = get(gcf, 'children');
set(get(hax, 'children'), 'linewidth', 2.5);
end;
原文地址:https://www.cnblogs.com/MiLu/p/3630573.html