Skip to content

Instantly share code, notes, and snippets.

@yansyaf
Created May 22, 2013 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yansyaf/5624524 to your computer and use it in GitHub Desktop.
Save yansyaf/5624524 to your computer and use it in GitHub Desktop.
#include "mex.h"
/* Input Arguments */
#define X1 prhs[0]
#define X2 prhs[1]
/* Output Arguments */
#define Y plhs[0]
void mexAdder( int nlhs, mxArray *plhs[],
int nrhs, const mxArray *prhs[] )
{
printf("adder\n");
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment