Skip to content

Instantly share code, notes, and snippets.

@sshojiro
Last active March 27, 2019 16:54
Show Gist options
  • Save sshojiro/63e66a5883bd8eb30f2f193b93dcd74f to your computer and use it in GitHub Desktop.
Save sshojiro/63e66a5883bd8eb30f2f193b93dcd74f to your computer and use it in GitHub Desktop.
[#matlab] 1行でタイムスタンプを打つ ref: https://qiita.com/sshojiro/items/47cdc635ee523c026baa
>> timestampRegular = replace(join(split(datestr(now), ' '), '-'), ':', '-'); timestampRegular{1}
ans =
'28-Jul-2018-19-35-05'
>> datestr(now,'yyyy-mm-dd-HH-MM-SS')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment