Documentation

end

Last date entry

Syntax

end

Description

end returns the index to the last date entry in a financial time series object.

Examples

Consider a financial time series object called MyFts:

dates = ['01-Jan-2001';'01-Jan-2001'; '02-Jan-2001'; ...
 '02-Jan-2001'; '03-Jan-2001';'03-Jan-2001'];
times = ['11:00';'12:00';'11:00';'12:00';'11:00';'12:00'];
dates_times = cellstr([dates, repmat(' ',size(dates,1),1),... 
times]);
myFts = fints(dates_times,(1:6)',{'Data1'},1,'My first FINTS')
myFts = 
 
    desc:  My first FINTS
    freq:  Daily (1)

    'dates:  (6)'    'times:  (6)'    'Data1:  (6)'
    '01-Jan-2001'    '11:00'          [          1]
    '     "     '    '12:00'          [          2]
    '02-Jan-2001'    '11:00'          [          3]
    '     "     '    '12:00'          [          4]
    '03-Jan-2001'    '11:00'          [          5]
    '     "     '    '12:00'          [          6]

Use end to return the last date entry in the financial time series object myFts.

myFts(end)
ans = 
 
    desc:  My first FINTS
    freq:  Daily (1)

    'dates:  (1)'    'times:  (1)'    'Data1:  (1)'
    '03-Jan-2001'    '12:00'          [          6]

Related Examples

See Also

|

Introduced before R2006a

Was this topic helpful?