Inputs to the colon operator must be datetime arrays or cell arrays of date/time character vectors or date/time strings.
Posted: Thu Feb 09, 2017 3:20 pm
Inputs to the colon operator must be datetime arrays or cell arrays of date/time character vectors or date/time strings. You may need to use parentheses to group the colon operation