使用matlab读取txt文件,并将其中的数字数据写入矩阵中答:clear;clc[a,b]=uigetfile('*.*','Please Select The File');if(a) f=fopen(strcat(b,a),'r'); s=fread(f,'*char').'; fclose(f); A=cell2mat(cellfun(@str2num,regexp(s,'(?<=A\d+\s+)\d+\s+\d+\s+\d+(?=\s+)','match'),'UniformOutput',0).')...