plot with string value in x axis

조회 수: 3 (최근 30일)
alpedhuez
alpedhuez 2020년 7월 3일
편집: alpedhuez 2020년 7월 3일
I have a data
date temperate
----
'2020-01' 10
'2020-02' 10
'2020-03' 20
I tried
plot(date, temperature)
and got "invalid data argument"
Please advise.
  댓글 수: 4
madhan ravi
madhan ravi 2020년 7월 3일
편집: madhan ravi 2020년 7월 3일
alpedhuez
alpedhuez 2020년 7월 3일
편집: alpedhuez 2020년 7월 3일
Solution: the problem is that in Matlab 'mm' is minuets that one needed to use 'MM' for months.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by