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 the efficient frontier with a specified number of portfolios
(prsk,pret]
= plotFrontier(obj,NumPortfolios)NumPortfolios) on the frontier, and plots the
corresponding efficient frontier.
[
estimates efficient portfolio risks and returns with
prsk,pret]
= plotFrontier(obj,PortfolioWeights)PortfolioWeights, and plots the efficient frontier with
those portfolios. This syntax assumes that you provide valid efficient portfolio
weights as input. PortWeights is a
NumAssets-by-NumPortfolios
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,PortfolioRisks,PortfolioReturns)PortfolioRisks and
PortfolioReturns 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
NumPortfolios portfolios, remember that portfolio
weights are
NumAsset-by-NumPortfolios
matrices and that portfolio risks and returns are
NumPortfolios-by-1 column
vectors.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
More About
Tips
You can also use dot notation to plot the efficient frontier.
[prsk, pret] = obj.plotFrontier;



![Figure contains an axes object. The axes object with title Efficient Frontier, xlabel Standard Deviation of Portfolio Returns, ylabel Mean of Portfolio Returns contains 3 objects of type line. These objects represent p0, with Max 3 assets invested, with each asset weight 0 or [0.1, 0.5].](../examples/finance/win64/PlotEfficientFrontierPortObjBoundMaxNumExample_01.png)

