MATLAB: How to control x axis scaling when your x axis data is datetime array (day-month-year hr:min:sec)

axis

italic

Best Answer

  • You need to enclose the arguments to the axis function in square brakcets ‘[]’:
    axis([xmin xmax 0 2.5])
    That should work.