| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Financial Toolbox |
| Contents | Index |
| Learn more about Financial Toolbox |
Weights = holdings2weights(Holdings, Prices, Budget)
Holdings | Number of portfolios (NPORTS) by number of assets (NASSETS) matrix with the holdings of NPORTS portfolios containing NASSETS assets. |
Prices | NASSETS vector of asset prices. |
Budget | (Optional) Scalar or NPORTS vector of nonzero budget constraints. Default = 1. |
Weights = holdings2weights(Holdings, Prices, Budget) converts portfolio holdings into portfolio weights. The weights must satisfy a budget constraint such that the weights sum to Budget for each portfolio.
Weights is a NPORTS by NASSETS matrix containing the normalized weights of NPORTS portfolios containing NASSETS assets.
Notes
|
![]() | hist | holidays | ![]() |
View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |