Mercurial > octave-dspies
view examples/myfunc.c @ 18669:cf3db95a75f0
axis.m: Fix regression when accepting input handle (cset 5032ac119d52).
* axis.m: When setting xlim, ylim, zlim to numeric values the functions
must be called with the desired axis handle so that id doesn't always
operate on gca.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 24 Apr 2014 07:13:37 -0700 |
parents | 224e76250443 |
children |
line wrap: on
line source
#include "mex.h" void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { const char *nm; nm = mexFunctionName (); mexPrintf ("You called function: %s\n", nm); if (strcmp (nm, "myfunc") == 0) mexPrintf ("This is the principal function\n", nm); return; }