# How to open .mat file in 3D Slicer

**URL:** <https://discourse.slicer.org/t/how-to-open-mat-file-in-3d-slicer/29960>\
**Category:** Support\
**Tags:** segmentation, extensions-manager, dicom, 3d-model\
**Created:** [June 10, 2023, 6:45am UTC](https://discourse.slicer.org/t/how-to-open-mat-file-in-3d-slicer/29960 "2023-06-10T06:45:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akmal871026](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akmal871026/32/11642_2.png) [@akmal871026](https://discourse.slicer.org/u/akmal871026)\
**Post date:** [June 10, 2023, 6:45am UTC](https://discourse.slicer.org/t/how-to-open-mat-file-in-3d-slicer/29960/1 "2023-06-10T06:45:38Z")

</div>

Dear All,

I have the file attached (you can download it thru the link). the unit in every voxel is supposed Gray (Gy).

Anyone can help me how to open it in 3D Slicer so that when I put the cursor on my image’s voxel, the unit appears in the data probe?

[data](https://drive.google.com/file/d/1NACh6380x4ROc5nw6fNKxyxj8IB6VDDP/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 10, 2023, 8:31pm UTC](https://discourse.slicer.org/t/how-to-open-mat-file-in-3d-slicer/29960/2 "2023-06-10T20:31:45Z")

</div>

.mat is a general container file format. For storing images, please use a standard 3D image file format, such as NRRD. You can use [nrrdwrite.m](https://github.com/PerkLab/SlicerMatlabBridge/blob/master/MatlabCommander/commandserver/nrrdwrite.m) to write a 3D matrix into an NRRD file.
