Mercurial > hg > octave-thorsten
view examples/myhello.c @ 11097:ffb2f1ef2097
make issparse, sparse, and spalloc built-in functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 14 Oct 2010 11:53:04 -0400 |
parents | 4295d634797d |
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; }