/*================Date of program writing...............======================*/

#include "stdio.h"
#include "stdlib.h"
#include "math.h"
#include "mex.h" //if you using a new MATLAB version you can (#include "mex.h")

void FunctionName(int Parameters, int Name)//all of variables here should be same below fucntion. 
{
          
    //Can you define the variables.
     
/*============START PROGRAMING=======================*/

     
}  


/*============================Gateway Function================================*/
void mexFunction(int nlhs, mxArray *plhs[],
                 int nrhs, const mxArray *prhs[])
{
    //Can you define the variables.
    //all of variables that define here should be include all in the function.
    
    
/*========Right Hand side variables of the mex funtion => INPUT ARGUMENTS=====*/

 

/*=======Left Hand side variables of the mex funtion => OUTPUT ARGUMENTS======*/


    FunctionName(Parameters, Name); //all of variables here should be same above fucntion.
}