how to name a file with date and hour
이전 댓글 표시
Hi i want to create a file in matlab which name is the date and the hour of the day thanks for help
답변 (1개)
Aurelien Queffurust
2012년 6월 8일
fid=fopen([ datestr(now,'dd_mm_yyyy_HH_MM_SS') '.txt'],'w')
will create a txt file as follows for 08-June-2012 14h11: 08_06_2012_14_11_12.txt
카테고리
도움말 센터 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!