accessing excel content nd writing d content one by one into imread instruction..
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Akzeptierte Antwort
Iman Ansari
am 1 Mai 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})
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!