reading text file to matlab
Afficher commentaires plus anciens
hello frds i want to read a text file which contains many image names . i want to read each name and to do some process on that image , ur help needed my problem is how to store the data that i read from textfile in matlab and on each name(image) i have to do some process.
fid = fopen('dbname.txt','r');
t=[];
tline = fgets(fid);
while ischar(tline)
disp(tline)
s=tline;
t= [t,s];
tline = fgets(fid);
end
fclose(fid);
celldata=cellstr(t);
but i couldnot access individual file name ur suggestions are helpful to me thanks
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Low-Level File I/O dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!