1 #include <octave/oct.h> 2 3 DEFUN_DLD (addtwomatrices, args, , "Add A to B") 4 { 5 if (args.length () != 2) 6 print_usage (); 7 8 NDArray A = args(0).array_value (); 9 NDArray B = args(1).array_value (); 10 11 return octave_value (A + B); 12 } 13