Clear Filters
Clear Filters

How can I read a 3 D 256*256*256 image file(.mat extension) ?

2 views (last 30 days)
imread('brain.mat')
output
Error using imread (line 362)
Unable to determine the file format.

Answers (4)

Image Analyst
Image Analyst on 26 Mar 2016
Use load(), not imread().

Azzi Abdelmalek
Azzi Abdelmalek on 26 Mar 2016
To read a mat file, use load function
im=load('brain')

Muhammad Usman Saleem
Muhammad Usman Saleem on 26 Mar 2016
do not read .mat file with imread function.
Please give imread(brain.tif) or any other
format of image( like gpeg, jpg,geotif,tiff etc). Imread function do not read .mat file

mohd akmal masud
mohd akmal masud on 14 Jun 2023
Moved: Image Analyst on 14 Jun 2023
load ('brain.mat');
instead of
imread('brain.mat');

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!