Mercurial > octave-nkf
view examples/code/celldemo.cc @ 20650:93d96da9ff3e
Update uiXXXXX documentation for autogenerated properties
* scripts/gui/uitoolbar.m: added ref to autogenerated properties
* scripts/gui/uicontextmenu.m: added ref to autogenerated properties
* scripts/gui/uicontrol.m: added ref to autogenerated properties
* scripts/gui/uipanel.m: added ref to autogenerated properties
* scripts/gui/uipushtool.m: added ref to autogenerated properties
* scripts/gui/uitoggletool.m: added ref to autogenerated properties
author | John Donoghue |
---|---|
date | Mon, 12 Oct 2015 17:30:44 -0400 |
parents | 2f8500ca91d3 |
children |
line wrap: on
line source
#include <octave/oct.h> #include <octave/Cell.h> DEFUN_DLD (celldemo, args, , "Cell Demo") { octave_value_list retval; if (args.length () != 1) print_usage (); Cell c = args(0).cell_value (); for (octave_idx_type i = 0; i < c.numel (); i++) { retval(i) = c(i); // using operator syntax //retval(i) = c.elem (i); // using method syntax } return retval; }