Mercurial > octave
view examples/code/helloworld.cc @ 31218:a33a9c87220b stable
imformats.m: Fix "isa" function in return value (bug #62974)
* imformats.m (isa_magick): Fix typo "Format" to "format" for name of field in
struct returned from __magick_ping__.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 30 Aug 2022 15:24:29 -0700 |
parents | 185f850aa543 |
children |
line wrap: on
line source
#include <octave/oct.h> DEFUN_DLD (helloworld, args, nargout, "Hello World Help String") { octave_stdout << "Hello World has " << args.length () << " input arguments and " << nargout << " output arguments.\n"; // Return empty matrices for any outputs octave_value_list retval (nargout); for (int i = 0; i < nargout; i++) retval(i) = octave_value (Matrix ()); return retval; }