how to load multiple matfiles from another folder?
Show older comments
how to load multiple matfiles from another folder?
1 Comment
LeoAiE
on 30 Oct 2021
Hi,
There are many ways to load multiple files into MATLAB but first and foremost is to add the folder to you path. If the files have similar names you can use a wild card with datastore function https://www.mathworks.com/help/matlab/datastore.html A datastore allows you to read and process data stored in multiple files on a disk, a remote location, or a database as a single entity. If the data is too large to fit in memory, you can manage the incremental import of data, create a tall array to work with the data, or use the datastore as an input to mapreduce for further processing.
And example of how to load multiple files If your files names are file1, file2, files3 etc Then use something like Data = readtable(‘file*.mat’) If you find this answer helpful, consider accepting it! Thanks
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown 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!