file=dir('/home/wang/Desktop/trainset/others/');
for i=: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