accessing excel content nd writing d content one by one into imread instruction..
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Iman Ansari
le 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})
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Spreadsheets dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!