title: Check for dates consistency in MATLAB
body: <p>Is there any straight forward way to do that? I want to give an array of dates as an input (for example 1997-01-02 1997-01-03... using the format yyyy-mm-dd) and get 1 if all the elements of the given array are consistent and 0 otherwise.</p>
  
  <p>Any idea?</p>