Read a dicom file using the name from an Excel
Show older comments
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).
Accepted Answer
More Answers (0)
Categories
Find more on DICOM Format 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!