Random Forest has been added as classification method in the latest release of the Classification toolbox for MATLAB. The toolbox is available for download at this link: https://michem.unimib.it/download/matlab-toolboxes/classification-toolbox-for-matlab/