pt = 'd:\data\'; % 换成自己的路径ff = 'measure'; % 文件前缀et = '.0.txt'; % 文件后缀及扩展名n = 100; % 文件数量R = zeros(n,5); % 结果矩阵for p = 1:n ss = num2str(p) fn = [pt ff ss et]; fid = fopen('0.txt'); while ~...
mm=1:1:500;AA=[];for i=1:size(mm,2)format compact;proj_header = 'water';proj_number = num2str(mm(i));%数值型转化成字符型 proj_suffix = '.txt';filename = [proj_header proj_number proj_suffix];sh=textread(filename,'', 'headerlines', 2);AA=[AA;sh(end,:)];end ...