Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to plot dates expressed in the form of number?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi everyone,
I want to plot dates that are expressed in the following format:
% x-axis
Time = [730211, 730241, 730302, 730333]
% y -axis
Values = [0.602300789014034, 0.603937673632081, 0.606134076857801, 0.609570252971655]
plot(Time,Values) % ERROR
I am not sure how to transform the existing time format into proper time format that can be used in a plot.
Thank you.
댓글 수: 1
Steven Lord
2019년 6월 5일
When I run those three lines of code I do not receive an error. Can you show the full and exact text of the error message you received (all the text displayed in red?)
답변 (1개)
Star Strider
2019년 6월 5일
Try this:
plot(Time,Values)
datetick('x','yyyy/mm/dd')
Experiment to get the result you want.
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!