Getting Date from fints object

5 ビュー (過去 30 日間)
Martyn
Martyn 2014 年 6 月 16 日
コメント済み: Sean de Wolski 2014 年 6 月 16 日
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
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
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)

Martyn
Martyn 2014 年 6 月 16 日
Thanks very much for that. And of course obvious now you've told me :)
  1 件のコメント
Sean de Wolski
Sean de Wolski 2014 年 6 月 16 日
Please accept the answer if it helped you :)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeManage Products についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by