Delete documents before strarting the routine
조회 수: 12 (최근 30일)
이전 댓글 표시
My Matlab script creates three different documents (.txt documents and .xlsx document). Every time I run the script I have to erase those documents manually in order to avoid problems. Does someone know a "script" which will go at the beginning of my routine that will delete such documents before running the analysis? Thanks.
채택된 답변
Jan
2017년 3월 13일
Do tis for the wanted files:
if exist(FileName, 'file') == 2
delete(FileName);
end
댓글 수: 7
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Construct and Work with Object Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!