text: #ifndef BIORBD_MATLAB_TOTAL_MASS_H
  #define BIORBD_MATLAB_TOTAL_MASS_H
  
  #include <mex.h>
  #include "BiorbdModel.h"
  #include "class_handle.h"
  #include "processArguments.h"
  
  void Matlab_totalMass( int, mxArray *plhs[],
                    int nrhs, const mxArray*prhs[] ){
  
      // Verifier les arguments d'entrée
      // Verifier les arguments d'entrée
      checkNombreInputParametres(nrhs, 2, 2, "2 arguments are required where the 2nd is the handler on the model");
      biorbd::Model * model = convertMat2Ptr<biorbd::Model>(prhs[1]);
  
      // Create a matrix for the return argument
      plhs[0] = mxCreateDoubleMatrix( 1, 1, mxREAL);
      double *mass = mxGetPr(plhs[0]);
  
      // Get la masse de tout le corps
      *mass = model->mass();
  
      return;
  }
  
  #endif // BIORBD_MATLAB_TOTAL_MASS_H
  