accessing excel content nd writing d content one by one into imread instruction..
조회 수: 2 (최근 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.
댓글 수: 0
채택된 답변
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 Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!