Mercurial > octave-nkf
view examples/mycell.c @ 18838:0dae39867b2b
cleanup of tic and ticlabel code
* scripts/plot/util/private/__go_draw_axes__.m (do_tics_1):
Reorder manual and automatic tic mode and save two string
comparisons.
author | Stefan Mahr <dac922@gmx.de> |
---|---|
date | Tue, 18 Mar 2014 20:59:04 +0100 |
parents | 224e76250443 |
children |
line wrap: on
line source
#include "mex.h" void mexFunction (int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) { mwSize n; mwIndex i; if (nrhs != 1 || ! mxIsCell (prhs[0])) mexErrMsgTxt ("ARG1 must be a cell"); n = mxGetNumberOfElements (prhs[0]); n = (n > nlhs ? nlhs : n); for (i = 0; i < n; i++) plhs[i] = mxDuplicateArray (mxGetCell (prhs[0], i)); }