I am working with the financial tooldbox that has a type called FINTS. If I copy some code out of its toolbox directory to customize it, when I try do do something like fts.data, `I get
The specified field, ‘data’, does not exist in the object.
But the same thing works fine in the MATLAB library directory. They are both in my path, so what else do I need to change?
OK, I figured it out. MATLAB defines class methods in what it calls method directories which are named after the class. So in this case, the class is
fints, so all its methods are in@fints. All I had to do was make a new directory in my own workspace called@fints, and it will become another class method offints. You can see all the methods a class has by callingwhat className.