The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Financial toolbox assumes dates are sorted?
Replies: 2   Last Post: Jan 27, 2013 3:43 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Phil Goddard

Posts: 358
Registered: 1/27/12
Re: Financial toolbox assumes dates are sorted?
Posted: Jan 26, 2013 4:08 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

If you look at the constructor
>> edit fints/fints
you'll see that it sorts the dates when the object is constructed.

Also, looking at the methods, for instance,
>> edit fints/plus
you'll see that fints of the latest version are assumed to be sorted (as they will be sorted by the constructor) and that fints of older versions get sorted.

You are right in that the documentation for the constructor doesn't explicitly say that a sort takes place (except for fints with duplicate dates -- in a note near the end of the help).


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.