holdings2weights
Portfolio holdings into weights
Syntax
Weights = holdings2weights(Holdings,Prices,Budget)
Arguments
| Number of portfolios ( |
|
|
| (Optional) Scalar or |
Description
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
Holdings
may be negative to indicate a short position, but the overall portfolio weights must satisfy a nonzero budget constraint.The weights in each portfolio sum to the
Budget
value (which is1
ifBudget
is unspecified.)
Version History
Introduced before R2006a