Borrar filtros
Borrar filtros

Timeseries bug?

1 visualización (últimos 30 días)
Roy
Roy el 6 de Mzo. de 2012
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 comentario
Wayne King
Wayne King el 6 de Mzo. de 2012
Please indicate what version of MATLAB you are using. This example runs find for me.

Iniciar sesión para comentar.

Respuesta aceptada

David
David el 6 de Mzo. de 2012
FYI, works fine on 7.12.0.635 (R2011a).

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by