[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
- any /tools/hpmatlab/toolbox/matlab/ops/any.m
- else /tools/hpmatlab/toolbox/matlab/lang/else.m
- elseif /tools/hpmatlab/toolbox/matlab/lang/elseif.m
- end /tools/hpmatlab/toolbox/matlab/lang/end.m
- error /tools/hpmatlab/toolbox/matlab/lang/error.m
- for /tools/hpmatlab/toolbox/matlab/lang/for.m
- i /tools/hpmatlab/toolbox/matlab/elmat/i.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- input /tools/hpmatlab/toolbox/matlab/lang/input.m
- length /tools/hpmatlab/toolbox/matlab/general/length.m
- nargin /tools/hpmatlab/toolbox/matlab/elmat/nargin.m
- return /tools/hpmatlab/toolbox/matlab/lang/return.m
This function is called by
- cohere /tools/hpmatlab/toolbox/signal/cohere.m
- csd /tools/hpmatlab/toolbox/signal/csd.m
- psd /tools/hpmatlab/toolbox/signal/psd.m
- specgram /tools/hpmatlab/toolbox/signal/specgram.m
- spectrum /tools/hpmatlab/toolbox/signal/spectrum.m
- tfe /tools/hpmatlab/toolbox/signal/tfe.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON