How to write time stamp to a specific cell in csv file

조회 수: 3 (최근 30일)
NAFTALI HERSCOVICI
NAFTALI HERSCOVICI 2022년 1월 4일
댓글: Cris LaPierre 2022년 1월 4일
I have a csv file that I read and write to it. I need to "stamp" the date and time last accessed.
Couldn't find a simple example.
Assuming I defined,
dt=datestr(now,'mmmm dd,yyyy HH:MM:SS AM'),
I wouldlike to store dt into the csv file on cell F1
Thanks

채택된 답변

Cris LaPierre
Cris LaPierre 2022년 1월 4일
I believe that is not an option with a csv file. They are text files, so don't have cells or ranges. It may be possible with a spreadsheet. See this example of writing to a specific range of a spreadsheet.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by