1######################################################################## 2## 3## Copyright (C) 2017-2021 The Octave Project Developers 4## 5## See the file COPYRIGHT.md in the top-level directory of this 6## distribution or <https://octave.org/copyright/>. 7## 8## This program is free software; you can redistribute it and/or 9## modify it under the terms of the GNU General Public License as 10## published by the Free Software Foundation; either version 3 of the 11## License, or (at your option) any later version. 12## 13## This program is distributed in the hope that it will be useful, but 14## WITHOUT ANY WARRANTY; without even the implied warranty of 15## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16## General Public License for more details. 17## 18## You should have received a copy of the GNU General Public License 19## along with this program; if not, see <http://www.gnu.org/licenses/>. 20 21## -*- texinfo -*- 22## @deftypefn {Function File} {@var{ret} =} example_mfile (@var{arg}) 23## Placeholder for an mfile function. 24## 25## @var{arg}: argument. @var{ret}: returned value. 26## 27## Although this file is so short, a license text is contained as an 28## example. 29## 30## @seealso{example_open, example_close, example_do_something} 31## @end deftypefn 32 33function ret = example_mfile (arg) 34 35 if (nargin () != 1) 36 print_usage (); 37 endif 38 39 ret = arg; 40 41endfunction 42