필터 지우기
필터 지우기

how can I change series of data into time series data

조회 수: 3 (최근 30일)
Ede gerlderlands
Ede gerlderlands 2012년 10월 26일
I have data series that ranges from 7.334894375000000e+05 to 7.340144791666666e+05 which comprises 24273 data. The data covers 525 days which is recorded approximately 0.46 hrs. I want to plot this data as time series of month and day. can you help me with that? The commencement day of recording is 15-03-2008. How can I edit the plot so that I will have mm/dd on the x-axis?
Any help is appreciated.

채택된 답변

Ryan G
Ryan G 2012년 10월 26일
You can use the datestr function to convert between a numerical representation and a date representation.
To find the first date from 15-03-2008, you can use datenum to determine the corresponding number.
To convert the data to match a 0.46 hour sample time, you could try the linspace command, assuming your data is evenly distributed.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by