when i try to read number of images from a file in to a program using the "cell" matlab is showing error? Pleasing help me with reading number of images from a file into a single program !!
Ältere Kommentare anzeigen
%n=6
% images=cell(1,n);
% fnamefmt='%d.jpg';
% for i=1:n
% image(i)=imread(sprintf(fnamefmt,i));
% end
% result=cell(1,n);
% for i=1:n
% result(i)=imshow(images(1));
% end
The error it's showing is
%Conversion to cell from double is not possible.
Error in dabb (line 17) c(1)=double(imread('1.jpg'));
1 Kommentar
Jan
am 14 Okt. 2013
You need curly braces to index a cell array.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!