https://fr.mathworks.com/help/stats/treebagger.oobmeanmargin.html
TreeBagger.oobMeanMargin - Out-of-bag mean margins - MATLAB
This MATLAB function computes average classification margins for out-of-bag observations in the training data, using the trained bagger B.
out ofbagmeanmarginsmatlab