I have multiple .mat files (more than 100). I am running a code where I have to load the files. The name of the .mat files are saved as (lets consider only 10 files),
loc_1_test.mat, loc_3_test.mat, loc_4_test.mat, loc_5_test.mat, loc_6_test.mat, loc_8_test.mat, loc_10_test.mat, loc_11_test.mat, loc_13_test.mat, loc_16_test.mat
I mean to say that if you have a look on these .mat files then the names are not evenly distributed. That means I believe it will be easy to load if the above names of the .mat files will be like,
loc_1_test.mat, loc_2_test.mat, loc_3_test.mat, loc_4_test.mat, loc_5_test.mat, loc_6_test.mat, loc_7_test.mat, loc_8_test.mat, loc_9_test.mat, loc_10_test.mat
Is there any way to change the name of the .mat files like this? Or the only option is to change them manually? Changing the names of over 100s of .mat files manually are very much time taking.
Can anyone please help? Thanks.