matlab fopen()

file=dir('/home/wang/Desktop/trainset/others/');
for i=3:length(file)
     path= strcat('/home/wang/Desktop/trainset/other/',file(i).name,'\n');
     %save('/home/wang/Desktop/trainsetimage_name');
     %save result.txt  -ascii path
     fid=fopen('./result4.txt','a');
     fprintf(fid,path);
end

 

posted on 2015-09-14 18:03  一动不动的葱头  阅读(544)  评论(0)    收藏  举报

导航