%% 该代码目的:输出仪器采集的信号文件列表
clc
clear
close all
%原始数据的路径
datapath = 'D:\20210430\';
fileFolder = fullfile(datapath);
dirOutput = dir(fullfile(fileFolder,'*.csv'));
fileNames = {dirOutput.name}';
path = strcat(datapath,'filelist.txt');
fp = fopen(path,'a');
for i = 1:length(fileNames)
endPos = length(fileNames{i})-4;
curname = fileNames{i}(1:endPos);
fprintf(fp,'%s\n',curname);
end
fclose(fp);