Multiple data file loading to run some functions

2 ビュー (過去 30 日間)
Amila
Amila 2022 年 9 月 21 日
回答済み: KSSV 2022 年 9 月 21 日
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)

採用された回答

KSSV
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 件)

カテゴリ

Help Center および File ExchangeStandard File Formats についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by