Skip to content

Instantly share code, notes, and snippets.

@rej55
Created December 11, 2016 06:29
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 rej55/1a2cab068c476d2117c2f63b97ec9d8c to your computer and use it in GitHub Desktop.
Save rej55/1a2cab068c476d2117c2f63b97ec9d8c to your computer and use it in GitHub Desktop.
#include "mex.h"
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
// nlhs : 出力の数
// plhs[idx] : idx番目の出力が格納されているメモリのアドレス
// nrhs : 入力の数
// prhs[idx] : idx番目の入力が格納されているメモリのアドレス
/* ここに処理を書く */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment