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!