Financial Time Series    

Data Extraction

Here is an exercise on how to extract data from a financial time series object. As mentioned before, you can think of the object as a MATLAB structure. Cut and paste each line in the exercise to the MATLAB command window and press Enter to execute it.

To begin create a financial time series object called myfts.

The myfts object looks like

There are more dates in the object; only the first few lines are shown here.

Now create another object with only the values for series2.

The new object srs2 contains all the dates in myfts, but the data series is only series2. The name of the data series retains its name from the original object, myfts.


 Financial Time Series Object Structure Object to Matrix Conversion