Plot data with date and time as the x axis
조회 수: 99 (최근 30일)
Cris LaPierre 2022년 3월 4일
Read the table in as a table using readtable. You will want to make sure column 1 is read in as a datetime. This 'should' happen automatically, but may depend on your version of MATLAB. Once in MATLAB, you can just plot using the datetime variable as your x input. As a datetime, it will automatically show date and time.
You can use xtickformat function to modify the display format of the datetime values.
See more info here.