I have a folder of .mat files (thousands of files) with specific names such as
FD800-000-M300.mat
MD500-234-K400.mat
...
and I would like to convert them into csv files and save them with same name they had as .mat files as
FD800-000-M300.csv
MD500-234-K400.csv
...
Please let me know the best way to do it in MATLAB.