comparison scripts/miscellaneous/inputname.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 597f3ee61a48
comparison
equal deleted inserted replaced
30892:1a3cc2811090 30893:e1788b1a315f
57 ## 57 ##
58 ## 2) cell or struct indexing causes all further names to be returned as "" 58 ## 2) cell or struct indexing causes all further names to be returned as ""
59 ## 59 ##
60 ## c = {'a', 'b'} 60 ## c = {'a', 'b'}
61 ## y = 1; z = 2; 61 ## y = 1; z = 2;
62 ## func (c, y, z) 62 ## fcn (c, y, z)
63 ## % inputname() would return 'c', 'y', 'z' for the inputs. 63 ## % inputname() would return 'c', 'y', 'z' for the inputs.
64 ## func (c{1}, y, z) 64 ## fcn (c{1}, y, z)
65 ## % inputname() would return '', '', '' for the inputs. 65 ## % inputname() would return '', '', '' for the inputs.
66 ## 66 ##
67 ## 3) If inputname is not called from a function, Matlab walks up the stack 67 ## 3) If inputname is not called from a function, Matlab walks up the stack
68 ## until it finds some valid code and then works from there. This could 68 ## until it finds some valid code and then works from there. This could
69 ## be relevant for mex files or anonymous functions. 69 ## be relevant for mex files or anonymous functions.