I have 44 folders and I have a matlab script which runs for loop for every folder and save .mat file. But when I save .mat file inside the for loop, the matlab file doesn't save inside every folder but save in main folder. I want to save the mat file in every folder that I am running my script but it is not working. Is there any method to save .mat file in every folder of my for loop?
MATLAB: Problem getting error while trying to save .mat file in every folder
.mat filedirectoryfolderfor loopsavesub directories
Best Answer