PLEASE HELP to convert file to .nii file

6 次查看(过去 30 天)
Hello, urgent help needed,
I was given data that was delivered to me as a zip folder, with all files compressed to .rar. After extracting and decompressing all folders, each folder has around 5-10 thousand files.
I need my fmri and mri data to be given in one of the following formats: .nii, .brk, .head, .nii.gz, .txt, .mat-file
The current filetype is simply "file"
Any ideas will help.
  2 个评论
Cris LaPierre
Cris LaPierre 2021-1-5
What happens if you change the extension from "file" to one of these extensions? Can you open one of the files in a text editor and determine what the actual file type is?
Consider attaching one of your files to your post using the paperclip icon.
Amanda
Amanda 2021-1-5
I see what you're saying, and it may work. So how can I add an extension to all files in a folder?
(The current filetype is simply "File", and I have several hundred to several thousands of files in each folder)

请先登录,再进行评论。

回答(1 个)

Cris LaPierre
Cris LaPierre 2021-1-5
Look into movefile, which will move or rename a file or folder
Before investing in renaming all of them, just try it out on one or two files. You can just change the extension manually as see if you can open the file in the expected program.

类别

Help CenterFile Exchange 中查找有关 MRI 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by