First Col to Rep Date in Double Array
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a beginner question.
I have an array of doubles where columns from 2 to 10 stores doubles.
But I need the first column to represent time, so I can plot them against whichever double series I need to.
I don't know exactly how to get around with this.
I have the dates in serial numbers, but when I plot them against other double series, the x-axis obviously shows numbers instead of something like 11/1/2019.
How can I solve this issue??
댓글 수: 4
채택된 답변
Kavya Vuriti
2019년 12월 4일
Hi,
You can use timetable array which associates a time with each row and then plot them against date and time using stackedplot.
Refer the following links for more information on these functions: https://www.mathworks.com/help/matlab/ref/timetable.html, https://www.mathworks.com/help/matlab/ref/stackedplot.html
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Calendar에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!