MATLAB Answers

time series

조회 수: 2(최근 30일)
Judah S
Judah S 2012년 1월 21일
Hello,
If I have two vectors in excel file:
col A 0.34 0.65 0.21 0.54 0.34 0.89 . .
col B (22/01/2012 08:10:30) (22/01/2012 08:11:30) (22/01/2012 08:12:30) (22/01/2012 08:13:30) . .
My question is how can I plot both vectors?
Thanks.
Best,
  댓글 수: 2
Judah S
Judah S 2012년 1월 21일
Hi Wayne,
Yes I have but never used it.
Please suggest further.
Thanks.
Regards

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

채택된 답변

Walter Roberson
Walter Roberson 2012년 1월 21일
You can use datenum to convert the date/times to linear times. You can plot(B,A) and you can use datetick to cause the x axis to be shown as time.
  댓글 수: 4
Judah S
Judah S 2012년 1월 22일
Done
datetick('x', 'dd/mm/yyyy HH:MM:SS','keepticks');

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

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by