how to convert .mat file to .dcm file?
3 views (last 30 days)
Show older comments
mohd akmal masud
on 5 Jun 2023
Commented: mohd akmal masud
on 5 Jun 2023
Dear all,
I have the .mat file as attached. Anyone can help me to convert to .dcm file?
0 Comments
Accepted Answer
Simon Chan
on 5 Jun 2023
Try the following:
rawdata = load('petnew.mat');
J = permute(rawdata.petnew, [1 2 4 3]);
dicomwrite(J,'yourFile.dcm');
More Answers (0)
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!