Read a dicom file using the name from an Excel
Ältere Kommentare anzeigen
Hello,
I have a folder with 900 images and an excel connected to it and I want to read the images based on the name in the excel. I tried with this code but it didn't worked.
folder=dir('C:\miniRSNA\*.dcm');
a=readtable('miniRSNA-labels.xlsx');
[name]=a(:,8);
for i=1: numel(name)
img(i)= name(i+1);
imag=strcat('C:\miniRSNA', img(i).name);
end
It gives me this error: Subscripting into a table using one subscript (as in t(i)) or three or more subscripts (as in t(i,j,k)) is not supported. Always specify a row subscript and a variable subscript, as in t(rows,vars).
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu DICOM Format finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!