Multiple data file loading to run some functions
2 次查看(过去 30 天)
显示 更早的评论
I have some functions to load data file and make some plots and re-arrainge the data. i want to chage path to load multiple file and do the run the function to multiple files can you helpme kindly ?
the loading part of data in the code is like this
function func_read_text_rev1
clc
format long g
fname = '20220515.txt'; % change file path
the files are named as date given in the file name .txt
is their is a way to load range of files for example from (20220515 to 20220530)
0 个评论
采纳的回答
KSSV
2022-9-21
fname = dir('*.txt') ; % gets all text files
N = length(fname) ;
for i = 1:N
txtFile = fname(i).name ;
% load the file here
end
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!