Documentation Center 
Randomized portfolio risks, returns, and weights
[PortRisk, PortReturn, PortWts] = portrand(Asset, Return,
Points, Method)
portrand(Asset, Return, Points, Method)
Asset  Matrix of time series data. Each row is an observation and each column represents a single security. 
Return  (Optional) Row vector where each column represents the rate of return for the corresponding security in Asset. By default, Return is computed by taking the average value of each column of Asset. 
Points  (Optional) Scalar that specifies how many random points should be generated. Default = 1000. 
Method  (Optional) A string that specifies how to generate random portfolios from the set of portfolios with two possible methods:

[PortRisk, PortReturn, PortWts] = portrand(Asset, Return, Points, Method) returns the risks, rates of return, and weights of random portfolio configurations.
PortRisk  Pointsby1 vector of standard deviations. 
PortReturn  Pointsby1 vector of expected rates of return. 
PortWts  Points by number of securities matrix of asset weights. Each row of PortWts is a different portfolio configuration. 
portrand(Asset, Return, Points, Method) plots the points representing each portfolio configuration. It does not return any data to the MATLAB^{®} workspace.