天天看点

detele file in Matlabsee the code. you just need to set the path and the file type...

When training parameteres with deep learning method, you will get lot's of file whchi would occupy huge area in disk.

you need to delete them

see the code. you just need to set the path and the file type...

function deleteFileInDir(StrDir,FileType)
% Jun zhang Sep.21, 2021
 %strDir='G:\Retrain2021\ ';
 %FileType  .mat, or .txt  
namelist = dir(strcat(StrDir,'*',FileType));
len = length(namelist);
for i = 1:len
   sr= strcat(StrDir,namelist(i).name );
   delete(sr)
   % x= load(file_name{i});
end 
end
           

继续阅读