accessing excel content nd writing d content one by one into imread instruction..

1 view (last 30 days)
fid=fopen('tun.xlsx','r'); [num,txt,raw] = xlsread('tun.xlsx'); fclose(fid); disp(txt); for i=1:20 A=txt(1:i); i=i+1; B=imread('A'); end basically i hav an excel file in that there are names given to 20 jpeg images, i am able to individually access each image name but i need to pass d name to imread nd perform d other processing...nd i am nt able to pass d name to imread on each induvidual iteration of i.. is der any other means of reading names nd passing dem to imread.. i gt an error as A is nt a file name in d image databse.

Accepted Answer

Iman Ansari
Iman Ansari on 1 May 2013
Hi. You don't need to use fopen or fclose.
[~,txt,~] = xlsread('tun.xlsx');
disp(txt);
for i=1:20
A=txt{1,i};
B{i}=imread(A);
end
imshow(B{1})

More Answers (0)

Community Treasure Hunt

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

Start Hunting!