datetick error message when displaying dates on the x-axis
Show older comments
I got the datetime array t defined as below.
'19-Jan-2006 05:32:00'
'19-Jan-2006 05:53:00'
'19-Jan-2006 06:14:00'
'19-Jan-2006 06:40:00'
'19-Jan-2006 07:02:00'
'19-Jan-2006 07:23:00'
'19-Jan-2006 07:46:00'
'19-Jan-2006 08:06:00'
'19-Jan-2006 08:29:00'
'19-Jan-2006 08:50:00'
'19-Jan-2006 09:11:00'
'19-Jan-2006 09:33:00'
'19-Jan-2006 09:53:00'
'19-Jan-2006 10:13:00'
'19-Jan-2006 10:34:00'
'19-Jan-2006 10:54:00'
'19-Jan-2006 11:15:00'
'19-Jan-2006 11:35:00'
'19-Jan-2006 11:55:00'
'19-Jan-2006 12:15:00'
'19-Jan-2006 12:35:00'
'19-Jan-2006 12:59:00'
'19-Jan-2006 13:25:00'
'19-Jan-2006 13:51:00'
'19-Jan-2006 14:17:00'
'19-Jan-2006 14:47:00'
'19-Jan-2006 15:13:00'
'19-Jan-2006 15:46:00'
'19-Jan-2006 16:17:00'
'19-Jan-2006 16:43:00'
'19-Jan-2006 17:21:00'
'19-Jan-2006 17:54:00'
'19-Jan-2006 18:23:00'
'19-Jan-2006 19:06:00'
'19-Jan-2006 19:47:00'
'19-Jan-2006 20:33:00'
'19-Jan-2006 21:15:00'
'19-Jan-2006 21:43:00'
'19-Jan-2006 22:32:00'
'20-Jan-2006 00:06:00'
'20-Jan-2006 01:18:00'
'20-Jan-2006 01:54:00'
'20-Jan-2006 02:21:00'
'20-Jan-2006 02:50:00'
'20-Jan-2006 03:14:00'
'20-Jan-2006 03:38:00'
'20-Jan-2006 03:59:00'
'20-Jan-2006 04:19:00'
'20-Jan-2006 04:46:00'
'20-Jan-2006 05:12:00'
'20-Jan-2006 05:53:00'
'20-Jan-2006 06:17:00'
I wand to display it on the x-axis of a candle chart with the function datetick('x',t). However, I get the following error message
Error using message In 'MATLAB:datetick:UnknownDateFormat', data type supplied is incorrect for parameter {1}.
Error in datetick (line 154) error(message('MATLAB:datetick:UnknownDateFormat', dateform));
>> How do I resolve this?
Accepted Answer
More Answers (0)
Categories
Find more on Language Fundamentals in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!