- 读取文件名类似的多个文件
files = dir('DED_particlex1000000_4_100_16_*.txt');
for id = 1:length(files)
pset = load(files(id).name);
npar = size(pset,1);
figure
box on
hold on
for i = 1:npar
scatter(pset(i, 1), pset(i, 2));
end
axis([-20 20 -20 20]);
end