Mercurial > octave
comparison scripts/legacy/@inline/argnames.m @ 30893:e1788b1a315f
maint: Use "fcn" as preferred abbreviation for "function" in m-files.
* accumarray.m, accumdim.m, quadl.m, quadv.m, randi.m, structfun.m,
__is_function__.m, uigetfile.m, uimenu.m, uiputfile.m, doc_cache_create.m,
colorspace_conversion_input_check.m, imageIO.m, argnames.m, vectorize.m,
vectorize.m, normest1.m, inputname.m, nthargout.m, display_info_file.m,
decic.m, ode15i.m, ode15s.m, ode23.m, ode23s.m, ode45.m, odeset.m,
check_default_input.m, integrate_adaptive.m, ode_event_handler.m,
runge_kutta_23.m, runge_kutta_23s.m, runge_kutta_45_dorpri.m,
runge_kutta_interpolate.m, starting_stepsize.m, __all_opts__.m, fminbnd.m,
fminsearch.m, fminunc.m, fsolve.m, fzero.m, sqp.m, fplot.m, plotyy.m,
__bar__.m, __ezplot__.m, flat_entry.html, profexport.m, movfun.m, bicg.m,
bicgstab.m, cgs.m, eigs.m, gmres.m, pcg.m, __alltohandles__.m, __sprand__.m,
qmr.m, tfqmr.m, dump_demos.m:
Replace "func", "fun", "fn" in documentation and variable names with "fcn".
author | Rik <rik@octave.org> |
---|---|
date | Mon, 04 Apr 2022 18:14:56 -0700 |
parents | 5d3faba0342e |
children | 78c3dcadf130 |
comparison
equal
deleted
inserted
replaced
30892:1a3cc2811090 | 30893:e1788b1a315f |
---|---|
22 ## <https://www.gnu.org/licenses/>. | 22 ## <https://www.gnu.org/licenses/>. |
23 ## | 23 ## |
24 ######################################################################## | 24 ######################################################################## |
25 | 25 |
26 ## -*- texinfo -*- | 26 ## -*- texinfo -*- |
27 ## @deftypefn {} {@var{args} =} argnames (@var{fun}) | 27 ## @deftypefn {} {@var{args} =} argnames (@var{fcn}) |
28 ## Return a cell array of character strings containing the names of the | 28 ## Return a cell array of character strings containing the names of the |
29 ## arguments of the inline function @var{fun}. | 29 ## arguments of the inline function @var{fcn}. |
30 ## @seealso{inline, formula, vectorize} | 30 ## @seealso{inline, formula, vectorize} |
31 ## @end deftypefn | 31 ## @end deftypefn |
32 | 32 |
33 function args = argnames (obj) | 33 function args = argnames (fcn) |
34 | 34 |
35 if (nargin < 1) | 35 if (nargin != 1) |
36 print_usage (); | 36 print_usage (); |
37 endif | 37 endif |
38 | 38 |
39 args = obj.args; | 39 args = fcn.args; |
40 | 40 |
41 endfunction | 41 endfunction |