看不清,但给你举个例子你要是要获取例如这样的数据0.00 good 20.10 bot 31.02 yes 41.00 yes 51.00 yes 61.00 yes 31.00 yes 5那么你就fid = fopen('E:\temp\test.txt', 'r');a = fscanf(fid, '%f %*s %d ', [2 inf]) % It has two rows now.fclose(fid);