필터 지우기
필터 지우기

Timeseries bug?

조회 수: 1 (최근 30일)
Roy
Roy 2012년 3월 6일
Helo, I was using Timeseries object and I found the example does not even run. When I followed the example
x = [2 5 8 2 11 3 6];
ts1 = timeseries(x,1:7);
ts1.Name = 'Daily Count';
ts1.TimeInfo.Units = 'days';
ts1.TimeInfo.StartDate='01-Jan-2011' % Set start date.
ts1.TimeInfo.Format = 'mmm dd, yy' % Set format for display on x-axis.
ts1.Time=ts1.Time-ts1.Time(1); % Express time relative to the start date.
plot(ts1)
the line
ts1.TimeInfo.StartDate='01-Jan-2011'
gives me a error:
Reference to non-existent field 'getData'.
Error in timeseries/get.Time (line 122) outtime = timeMetadata.getData;
Error in timeseries/display (line 48) locPrintSetting('Time:', locGetArrayStr(ts.Time));
Please help me with this issue. Thank you!
  댓글 수: 1
Wayne King
Wayne King 2012년 3월 6일
Please indicate what version of MATLAB you are using. This example runs find for me.

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

채택된 답변

David
David 2012년 3월 6일
FYI, works fine on 7.12.0.635 (R2011a).

추가 답변 (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