matlab批量处理文件,无表头输出
clear all
close all
clc
path = 'F:\LYF\data\'; %文件夹路径
Filesname = dir(strcat(path,'*.xls')); %找到当前路径文件夹下的以.xls为后缀的文件名
Length = length(Filesname ); %计算文件夹里xls文档的个数
for i = 1:1 %批量读取文件的内容并保存
A = xlsread(strcat(path,Filesname (i).name),'data','V1:V30000');
B = xlsread(strcat(path,Filesname (i).name),'data','Z1:Z30000');
C = xlsread(strcat(path,Filesname (i).name),'data','AA1:AA30000');
D = xlsread(strcat(path,Filesname (i).name),'Data','AJ1:AJ30000');
E = xlsread(strcat(path,Filesname (i).name),'data','AS1:BV30000');
F = xlsread(strcat(path,Filesname (i).name),'data','GK1:GL30000');
G = xlsread(strcat(path,Filesname (i).name),'data','GN1:GN30000');
H = x