Getting Date from fints object
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Chad Greene
le 16 Juin 2014
I doubt the folks on this forum are the best people to ask for advice on getting a date. :)
Réponses (2)
Sean de Wolski
le 16 Juin 2014
You can index into the date using . notation:
data = [1:15]'
dates = [today:today+14]'
tsobjkt = fints(dates, data)
tsobjkt.dates(10)
0 commentaires
Voir également
Catégories
En savoir plus sur Manage Products dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!