Mercurial > octave
view examples/code/addtwomatrices.cc @ 31237:e3016248ca5d
uifigure.m: Call set () only if varargin is not empty (bug #63088)
* uifigure.m: Call set () only if varargin is not empty.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 21 Sep 2022 09:55:32 -0400 |
parents | 2f8500ca91d3 |
children |
line wrap: on
line source
#include <octave/oct.h> DEFUN_DLD (addtwomatrices, args, , "Add A to B") { if (args.length () != 2) print_usage (); NDArray A = args(0).array_value (); NDArray B = args(1).array_value (); return octave_value (A + B); }