Getting Date from fints object
11 次查看(过去 30 天)
显示 更早的评论
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 个评论
Chad Greene
2014-6-16
I doubt the folks on this forum are the best people to ask for advice on getting a date. :)
回答(2 个)
Sean de Wolski
2014-6-16
You can index into the date using . notation:
data = [1:15]'
dates = [today:today+14]'
tsobjkt = fints(dates, data)
tsobjkt.dates(10)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Manage Products 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!