| [MATLAB] Time stamp |
[Jun. 28th, 2009|07:08 pm] |
Problem: pinpoint the time when the figure was generated
Solution: function timestamp; % pinpoint the time when the figure was generated % by putting a time stamp in the upper left corner of the current axis
x = get(gca,'xlim'); y = get(gca,'ylim'); x = x(1) + 0.02*diff(x); y = y(2) - 0.03*diff(y); text(x,y,datestr(now),'fontsize',8);
|
|
|