Mercurial > hg > octave-nkf
view examples/helloworld.cc @ 16076:c90c9623b20f
newplot.m: Return handle to created axes for Matlab compatibility (Bug #38146)
* newplot.m: Return handle to created axes if nargout > 0.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 20 Feb 2013 16:11:47 -0800 |
parents | db1f49eaba6b |
children | be41c30bcb44 |
line wrap: on
line source
#include <octave/oct.h> DEFUN_DLD (helloworld, args, nargout, "Hello World Help String") { int nargin = args.length (); octave_stdout << "Hello World has " << nargin << " input arguments and " << nargout << " output arguments.\n"; return octave_value_list (); }