How to change the name of an image?

7 views (last 30 days)
oshawcole
oshawcole on 20 Aug 2019
Commented: oshawcole on 20 Aug 2019
I have multiple images named as 10000, 10006, 10013, 100247 etc and I want to rename these images as 1_Gamma, 2_Gamma, 3_Gamma, 4_Gamma respectively. Any help would be appreciated. Thanks
  4 Comments
Adam Danz
Adam Danz on 20 Aug 2019
Great! I'll move my comment to the answer section so your question appears as answered.

Sign in to comment.

Accepted Answer

Adam Danz
Adam Danz on 20 Aug 2019
You can use movefile() to create a copy of the file with a new name. Then you can use delete() to delete the old copies forever (but you already made a backup of the original files before you did any of this).

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!