You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: classRF_predict.m
    path of file: ./repos/Image-Harmonization-Dataset-iHarmony4/Xue et al/demo/rf_class_c
    
    the code of the file until where you have to start completion: %**************************************************************
%* mex interface 
    
function in http://cran.r-project.org/web/packages/randomForest/randomForest.pdf
%**************************************************************
%function [Y_hat votes] = classRF_predict(X,model, extra_options)
% requires 2 arguments
% X: data matrix
% model: generated via classRF_train function
% extra_options.predict_all = predict_all if set will send