フィルターのクリア

rename the image name

2 ビュー (過去 30 日間)
sambath kumar
sambath kumar 2019 年 9 月 16 日
回答済み: Image Analyst 2019 年 9 月 16 日
Hi, I have 1000 brain images with .nii extensions.
the brain image stored in the folder like this first images --> mainfolder/subfolder/braini_s24567_i54612.nii
second images --> mainfolder/subfolder/brain_r4356_i23456.nii, like this n number of images are there in the existing folder.
Here i need the help from you , i want to remove before i then create new folder and save rename brian images...
the new folder brain image sould be 54612.nii and 23456.nii
can i have to code if any one knows..
(Modding Edit: Please do not include e-mail addresses in posts. You can add an e-mail address to your account so people can contact you through your profile if they really want)
  1 件のコメント
Rik
Rik 2019 年 9 月 16 日
What have you tried so far? Also, this is a public forum. If you want private help, hire a consultant.

サインインしてコメントする。

回答 (2 件)

Nicolas B.
Nicolas B. 2019 年 9 月 16 日
Hey,
I think, the commands that could help you are the following:
movefile('src', 'dest'); % move a file, you can even rename it with that function
copyfile('src', 'dest'); % copy a file, you can also rename it with that function
rmdir('my directory'); % delete folder which is empty
rmdir('my directory', 's'); % delete folder and its content
delete('my file'); % delete my file
Hope these commands will help you.

Image Analyst
Image Analyst 2019 年 9 月 16 日

カテゴリ

Help Center および File ExchangeHistorical Contests についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by