Error message “Value must be a 1x2 vector of increasing datetime values.” | MATLAB IoT Analytics | Forum

The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.

Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Error message “Value must be a 1x2 vector of increasing datetime values.”
No permission to create posts
September 16, 2016
3:56 pm

Forum Posts: 62
Member Since:
August 25, 2015
sp_UserOfflineSmall Offline

If you are manually setting the axis limits of your plot using the datenum function as below:

 plotHandle.Parent.XLim = [datenum(datetime('8-August-2016')), datenum(datetime('20-August-2016'))]


the following error might be generated:


Error using

Value must be a 1x2 vector of increasing datetime values.

Error in


To resolve the error, use the following command instead:


plotHandle.Parent.XLim = [(datetime('8-August-2016'), datetime('20-August-2016')]

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
27 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

kusmumichael, petersmith99, Rambant, blakeharriss09, optisol, Niyonzima Fils

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457