MATLAB Answers

how can i read a stack of images which are in .mat format into my matlab program

5 views (last 30 days)
jing huang
jing huang on 19 Jul 2017
Answered: Harsh on 21 Jul 2017
I put it into my workspace, but it says cannot display summaries of variables with more than 524288 elements.
now i have a small program, i want to use my program to enhancement these 40 MRI images.
I am new to matlab, could you please show me step by step how can i read into these 40 .mat format MRI images into my program. thanks a lot for your help

  1 Comment

Stephen Cobeldick
Stephen Cobeldick on 19 Jul 2017
How do imagine viewing an array with more than half a million elements will be useful?

Sign in to comment.

Answers (1)

Harsh on 21 Jul 2017
Here is a good answer with examples on processing a sequence of files in a loop:
The load function would be useful to work with .mat files.
The error 'Cannot display summaries of variables with more than 524288 elements." is expected behavior to limit the spike in memory usage of MATLAB.


Sign in to comment.


Community Treasure Hunt

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

Start Hunting!

Translated by