Mercurial > octave-nkf
view examples/addtwomatrices.cc @ 19639:d258070914ef gui-release
open file directly without edit command when editing a function from editor
* file-editor-tab.cc (handle_context_menu_edit): append .m to file name if
necessary, emit new signal to editor for the file open request
* file-editor-tab.h: new signal requesting to open a file
* file-editor.cc (add_file_editor_tab): connect new request-open-signal to
the already existing slot for opening a file
author | Torsten <ttl@justmail.de> |
---|---|
date | Thu, 22 Jan 2015 06:52:37 +0100 |
parents | be41c30bcb44 |
children |
line wrap: on
line source
#include <octave/oct.h> DEFUN_DLD (addtwomatrices, args, , "Add A to B") { int nargin = args.length (); if (nargin != 2) print_usage (); else { NDArray A = args(0).array_value (); NDArray B = args(1).array_value (); if (! error_state) return octave_value (A + B); } return octave_value_list (); }