Getting Date from fints object

6 visualizaciones (últimos 30 días)
Martyn
Martyn el 16 de Jun. de 2014
Comentada: Sean de Wolski el 16 de Jun. de 2014
Hi
I'm just getting my head around the Financial Toolbox. I've got a time series object and want to extract the date for a particular row. I can extract specific bits of data from the fields using things like fts2mat(), but I can't see how to get the date for say row 10. Any pointers would be welcome.
Thanks Martyn
  1 comentario
Chad Greene
Chad Greene el 16 de Jun. de 2014
I doubt the folks on this forum are the best people to ask for advice on getting a date. :)

Iniciar sesión para comentar.

Respuestas (2)

Sean de Wolski
Sean de Wolski el 16 de Jun. de 2014
You can index into the date using . notation:
data = [1:15]'
dates = [today:today+14]'
tsobjkt = fints(dates, data)
tsobjkt.dates(10)

Martyn
Martyn el 16 de Jun. de 2014
Thanks very much for that. And of course obvious now you've told me :)
  1 comentario
Sean de Wolski
Sean de Wolski el 16 de Jun. de 2014
Please accept the answer if it helped you :)

Iniciar sesión para comentar.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by