[Master Index] [Index for /tools/hpmatlab/toolbox/signal]

optargs

(/tools/hpmatlab/toolbox/signal/optargs.m)


Function Synopsis

fcall=optargs(FUN,a,b,var);

Help text

OPTARGS Optional parameter arguments call string.
	FCALL = OPTARGS(FUN,N) returns a string argument for EVAL
	with N optional parameters.  OPTARGS is used in functions
	that take optional trailing arguments:
	   myfun(a,b,'fun',P1,P2,P3,...)
	The string returned will be of the form 'fun(x,P1,P2,P3)'
	where fun is replaced by the string in FUN.  For example,
		optargs('myfcn',2) returns 'myfcn(x,P1,P2)'.

	FCALL = OPTARGS(FUN,START,END) returns an EVAL'able string
	with parameters that go from START to END.  optargs(fun,N)
	produces the same string as optargs(fun,1,N).

	FCALL = OPTARGS('',N,'') or FCALL = OPTARGS('',START,END,'') returns
	the optional parameter list only.  For example, OPTARGS('',3,'')
	returns '(P1,P2,P3)'.

	FCALL = OPTARGS(FUN,...,VAR) uses the string in VAR instead
	of x for the first argument to FUN.   Use VAR = '' to omit
	the first argument.

	OPTARGS(FUN,...) returns FUN if the string FUN contains
	any characters with ASCII value < 48.

Cross-Reference Information

This function calls
This function is called by

Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON