MATLAB: How to rename files for many folders

ciclerenamesubfolder

Hello,
I need a code to rename the files in ascending order. I need to do so for each subfolder contained in a father folder.
thank you.
Costanza
Related Question