Programming Previous page   Next Page

The Portfolio Constructor Method

The portfolio constructor method takes as input arguments a client's name and a variable length list of asset subclass objects (stock, bond, and savings objects in this example). The portfolio object uses a structure array with the following fields:

Constructor Calling Syntax

The portfolio constructor method can be called in one of three different ways:


Previous page  Example -- The Portfolio Container The Portfolio display Method Next page

© 1994-2005 The MathWorks, Inc.