Getting Date from fints object
이전 댓글 표시
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)
Martyn
2014년 6월 16일
0 개 추천
댓글 수: 1
Sean de Wolski
2014년 6월 16일
Please accept the answer if it helped you :)
카테고리
도움말 센터 및 File Exchange에서 Manage Products에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!