Reputation: 4373
I was wondering is it possible to check the timestamp of a command in Matlab? If I look at the command history I can see the timestamps separating the commands of different dates for example:
But is it possible to get the timestamp of a particular command? =)
Thank you for any advice
Upvotes: 5
Views: 2296
Reputation: 632
As an update to @dedek-mraz's answer, and for future reference: I have located the file History.xml
in %appdata%\MathWorks\MATLAB\R2018a
(Windows 10), which you can open and search by your favorite text editor.
Then I went to Command History in Matlab GUI and scrolled backwards to the respective day. Not very elegant, but it worked.
Upvotes: 1
Reputation: 814
Did you ask Google before posting? 4-th result says it's all written in ˙history.m`
This link explains that you can check history by typing history
in the command line. By default this won't get you timestamps. But setting the output format:
export HISTTIMEFORMAT=' %F %T '
your history
will give you timestamps.
Upvotes: 2