This enhancement has been incorporated in Release 2010a (R2010a). For previous product releases, read below for any possible workarounds:
Breiman's "random forest" method was introduced in Statistics Toolbox 7.1 (R2009a). You get random forest by default from TreeBagger. You do not need to do anything.
"Random forest" means that variables for decision splits are chosen at random for each decision tree. This is what "NVarToSample" option is for and by default it activates random selection of variables. If you want to turn off random forest, you need to set "NVarToSample" to "all".
Additional information about random forest can be found from an internet searching on "breiman random forests"
Best Answer