Load multiple MRI images from .mat format into cjdata

Hey there!
I have a database with MRI images stored as .mat files each containing a struct with 5 fields among which there is cjdata.image.
I am trying to run a test on those images but I have to do it manually since I do not know how to store the loaded images separately because they are all sent to the cjdata variable once I load one of the .mat files.
Can anybody help me?
Thank you.

댓글 수: 1

hello
clc
clear all
close all
for i=1:6
load(sprintf('%d.mat',i))
x = cjdata.image;
imshow (x,maps);
h1=figure(1);
end

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Neuroimaging에 대해 자세히 알아보기

질문:

2019년 6월 22일

댓글:

2020년 12월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by