Mercurial > hg > octave-max
view examples/myfunc.c @ 14325:a646cee995cf stable
disable zoom-box zooming for negative log scales; enable zooming for positive log scales
* graphics.cc (axes::properties::zoom): Disable zooming if either
axis is log and negative.
(axes::properties::zoom_about_point): Enable zooming for positive log
scale axes.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 04 Feb 2012 10:29:50 -0500 |
parents | 6cb30a539481 |
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; }