To save the data files numberig
조회 수: 2 (최근 30일)
이전 댓글 표시
Is there any way to save the data as data file by numbering it automatically. I mean, this command should look if another file with same name is in the directory and if it is there it should put number at the end automatically. for each run it should save the file with the same name but with number in increasing order. For example, if I ask to save file with file name 'mydata', it should save mydata1 for first run, mydata2 for second run, mydata3 for third run so and so.......so that I don't need to manually change the name everytime whenever I save.
댓글 수: 0
채택된 답변
Image Analyst
2014년 5월 25일
See the FAQ for code examples: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
댓글 수: 2
Image Analyst
2014년 5월 25일
So? Just replace the read function with the save function. Does that make sense? No big deal - very easy.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!