필터 지우기
필터 지우기

First Col to Rep Date in Double Array

조회 수: 1 (최근 30일)
Tatte Berklee
Tatte Berklee 2019년 11월 27일
답변: Kavya Vuriti 2019년 12월 4일
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
Turlough Hughes
Turlough Hughes 2019년 12월 2일
As in a serial number from excel? Can you attach some of the data?
Tatte Berklee
Tatte Berklee 2019년 12월 3일
Hey Turlough, I resolved this in plot as the plot command makes the datetick possible to be adjusted. Thanks guys!

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

채택된 답변

Kavya Vuriti
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.

추가 답변 (1개)

Sean de Wolski
Sean de Wolski 2019년 12월 2일
Use a timetable and stackedplot.
  댓글 수: 1
Tatte Berklee
Tatte Berklee 2019년 12월 3일
Can you please elaborate? thanks!

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

카테고리

Help CenterFile Exchange에서 Calendar에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by