Mercurial > hg > octave-max
view examples/firstmexdemo.c @ 14344:4687ecec0586
make test for bug 31371 work
* test_bug_31371.m: Use fcn instead of f to avoid apparent conflict
when running test suite. Use proper paren nesting for assert call.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 08 Feb 2012 16:37:40 -0500 |
parents | 6cb30a539481 |
children |
line wrap: on
line source
#include "mex.h" void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { mxArray *v = mxCreateDoubleMatrix (1, 1, mxREAL); double *data = mxGetPr (v); *data = 1.23456789; plhs[0] = v; }