From the function getYahooDailyData
(available on:)
I try the following code.
symbols = {'000001.SZ', '000002.SZ'}
data = getYahooDailyData(symbols, '01/01/2004', '05/11/2014', 'dd/mm/yyyy')
data is created as a struct
object.
data =
x000001x2ESZ: [480x7 dataset]
x000002x2ESZ: [480x7 dataset]
In my case my struct
object contains 2 dataset
(000001.SZ and 000002.SZ).
Each dataset contains 7 column : the first col is the date the last is the adjusted price.
I would like to know how to create a new matrice with 3 column:
- Date (which is the same for 000001.sz and 000002.sz)
- Adj price of 000001.sz
- Adj price of 000002.sz
And of course if I add more equities in symbols I would like to get the same kind of matrix...
PS: here is the matlab environement https://www.dropbox.com/s/vqujbs9utixcfeb/dataprices.mat?dl=0