Importing multiple files using a loop
Show older comments
Hello, i need to import multiple files and instead of writing them all down, i want to use a for loop for it.
These are the file names that i need to import, with 1 changing number in the file names.
A1=importdata('012_2023ef400t.txt');
A2=importdata('013_2023ef400t.txt');
A3=importdata('014_2023ef400t.txt');
this is the beginning, but i need to import 30 files.
Any suggestions?
Thank you!
Accepted Answer
More Answers (1)
Image Analyst
on 28 Sep 2023
0 votes
See the FAQ document for code snippets:
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!