http://www.mathworks.com/matlabcentral/fileexchange/2514-portvar
Value-at-Risk calculation for portfolio stocks using variance-covariance, historical and MonteCarlo methods. Portfolio can be larger as you want including either the risk factor (stock index, currency, etc.)