Code covered by the BSD License  

Highlights from
Exercises in Advanced Risk and Portfolio Management

from Exercises in Advanced Risk and Portfolio Management by Attilio Meucci
text and comments on solutions available at http://symmys.com/node/170

G_Hat_e(X)
function G = G_Hat_e(X)

G = median(X')';

Contact us at files@mathworks.com