plotFrontier
Plot efficient frontier
Syntax
Description
[
estimates the efficient frontier with default number of 10 portfolios on the
frontier, and plots the corresponding efficient frontier for
prsk
,pret
]
= plotFrontier(obj
)Portfolio
, PortfolioCVaR
, or
PortfolioMAD
objects. For details on the respective
workflows when using these different objects, see Portfolio Object Workflow, PortfolioCVaR Object Workflow,
and PortfolioMAD Object Workflow.
[
estimates efficient portfolio risks and returns with
prsk
,pret
]
= plotFrontier(obj
,PortWeights
)PortWeights
, and plots the efficient frontier with
those portfolios. This syntax assumes that you provide valid efficient portfolio
weights as input. PortWeights
is a
NumAsset
-by-NumPorts
matrix.
[
plots the efficient frontier with the given risks and returns. This syntax
assumes that you provide valid inputs for efficient portfolio risks and returns.
prsk
,pret
]
= plotFrontier(obj
,PortRisk
,PortReturn
)PortRisk
and PortReturn
are
vectors with the same size.
Note
plotFrontier
handles multiple input formats as
described above. Given an asset universe with
NumAssets
assets and an efficient frontier with
NumPorts
portfolios, remember that portfolio
weights are NumAsset
-by-NumPorts
matrices and that portfolio risks and returns are
NumPorts
column vectors.
Examples
Input Arguments
Output Arguments
Tips
You can also use dot notation to plot the efficient frontier.
[prsk, pret] = obj.plotFrontier;
Version History
Introduced in R2011a