Convert timeseries to regular array

  • Follow


Hello,

How do I convert a timeseries object back to a regular array?

Also, my timeseries has dimension 8 (from Data:1 to Data:8). Is it possible to extract one of them (Data:2 for example) as a regular array?

The reason I want to do this is because I can't graph the timeseries, since it has 350.000 values. The timeseries tool says it can only display the first 5000. Regular arrays can display all the values at once.

Thanks
0
Reply Gigi 4/22/2010 8:49:20 PM

On Apr 22, 4:49=A0pm, "Gigi Kent" <matlab.a...@spamgourmet.com> wrote:
> Hello,
>
> How do I convert a timeseries object back to a regular array?
>
> Also, my timeseries has dimension 8 (from Data:1 to Data:8). Is it possib=
le to extract one of them (Data:2 for example) as a regular array?
>
> The reason I want to do this is because I can't graph the timeseries, sin=
ce it has 350.000 values. The timeseries tool says it can only display the =
first 5000. Regular arrays can display all the values at once.
>
> Thanks

Hopefully you figures this out, I was also interested in the answer.
I was able to figure it out, it is probably obvious to those that deal
with objects in Matlab regularly.  Assuming you want to extract the
data from your timeseries, as opposed to the time vector itself you
can type;

y =3D timeseries.Data , where timeseries is the name of your
timeseries.  y will be a standard array.

Also useful is the get command.  If you type;

get(timeseries)

it will return all of the properties of the timeseries including
Data.  You can then use the standard syntax to access a given
property.  Hopefully this helps someone.
0
Reply Brian 4/26/2010 5:25:23 PM


1 Replies
622 Views

(page loaded in 0.042 seconds)

Similiar Articles:













7/27/2012 1:32:03 AM


Reply: