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

5 ビュー (過去 30 日間)
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.

採用された回答

Iman Ansari
Iman Ansari 2013 年 5 月 1 日
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})

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by