https://se.mathworks.com/help/finance/portfoliocvar.estimateportstd.html
estimatePortStd - Estimate standard deviation of portfolio returns - MATLAB
This MATLAB function estimate standard deviation of portfolio returns for PortfolioCVaR or PortfolioMAD objects.
standard deviationestimateportfolioreturnsmatlab