I'm trying to plot a number over time. The idea is to show on X-axis the date with milliseconds format.
The code below is not working properly, could some one help me?
figure(1)while(1) timestr = datetime(clock,'InputFormat','yyyy-MM-dd HH:mm:ss.S', 'Format', 'yyyy-MM-dd HH:mm:ss.SSS'); plot(timestr, rand(1)); pause(0.01)end
Best Answer