Mercurial > hg > octave-nkf
view examples/celldemo.cc @ 11394:ecd87194adb6
Update ticks after {xyz}tickmode is set to auto
author | Konstantinos Poulios <logari81@googlemail.com> |
---|---|
date | Sun, 19 Dec 2010 10:25:58 +0100 |
parents | 4295d634797d |
children | db1f49eaba6b |
line wrap: on
line source
#include <octave/oct.h> #include <octave/Cell.h> DEFUN_DLD (celldemo, args, , "Cell Demo") { octave_value_list retval; int nargin = args.length (); if (nargin != 1) print_usage (); else { Cell c = args (0).cell_value (); if (! error_state) for (octave_idx_type i = 0; i < c.nelem (); i++) retval(i) = c.elem (i); } return retval; }