how to read multiple text files with for loop

I have text files in a folder such as tax_1.txt, tax_2.txt, ..., tax_100.txt.
And in the folder, there is a line " taxCv = [1,0,0,0; 3,0,1,0]; " or "taxCv = [5,0,0,1];" or taxCv = [1,0,0,0;3,0,0,1;4,0,0,0;6,0,1,0];"
I would like to know how the files can be read in a loop.
Thank you so much.

2 件のコメント

Jan
Jan 2019 年 1 月 17 日
"In the folder ther is a line..." - how can a folder contain lines? What does "read files in a loop" mean? "Read" means to import the contents of the files as text usually. Is this wanted?
What is the difference to the question madhan has posted teh link to?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLanguage Support についてさらに検索

質問済み:

2019 年 1 月 17 日

コメント済み:

Jan
2019 年 1 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by