Last active
April 8, 2021 18:33
-
-
Save MichaelTr7/a24d6717d5b6c94121cef41409f0f5a3 to your computer and use it in GitHub Desktop.
A MATLAB Script for Loading MAT files from folders.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Folder_Directory = ""; | |
MAT_Files = dir(fullfile(Folder_Directory,"*.mat")); | |
for File_Number = 1: length(MAT_Files) | |
load(fullfile(Folder_Directory,MAT_Files(File_Number).name)); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
Folder_Directory
variable is the path to your folder holding the.mat
files that are trying to be loaded. If left asFolder_Directory = "";
the current working directory will be used.