copy the content of a file muliptle times and save as ordered files:

input: transient.case

outputs: transient_1.case, transient_2.case,...transient_101.case

**********

n=101;
fileinfo=importdata('transient.case',';');
for i=1:n
filename=sprintf('transient_%d.case',i);
filePh = fopen(filename,'w');
fprintf(filePh,'%s\n',fileinfo{:});
fclose(filePh);
end
*********

posted @ 2019-02-18 23:03  kaiming_ai  阅读(142)  评论(0编辑  收藏  举报