0% found this document useful (0 votes)
16 views

指令 CH2Matlab

Uploaded by

謝旻翰
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

指令 CH2Matlab

Uploaded by

謝旻翰
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

feval Execute the specified function.

feval(F,x1,...,xn) evaluates the function specified by a function


handle or function name, F, at the given arguments, x1,...,xn.
For example, if F = @foo, feval(F,9.64) is the same as foo(9.64).

If a function handle is bound to an overloaded function,


then the data type of the arguments x1 through xn, determines
which function is executed.

feval is usually used inside functions which take function


handles or function strings as arguments. Examples include
FZERO and EZPLOT.

[y1,..,yn] = feval(F,x1,...,xn) returns multiple output arguments.

Within methods that overload built-in functions, use BUILTIN(F,...)


to execute the original built-in function. Note that when using
BUILTIN, F must be a function name and not a function handle.

See also assignin, function_handle, functions, builtin, eval, evalin.

Documentation for feval


Other functions named feval
feval Execute the specified function.
feval(F,x1,...,xn) evaluates the function specified by a function
handle or function name, F, at the given arguments, x1,...,xn.
For example, if F = @foo, feval(F,9.64) is the same as foo(9.64).

If a function handle is bound to an overloaded function,


then the data type of the arguments x1 through xn, determines
which function is executed.

feval is usually used inside functions which take function


handles or function strings as arguments. Examples include
FZERO and EZPLOT.

[y1,..,yn] = feval(F,x1,...,xn) returns multiple output arguments.


Within methods that overload built-in functions, use BUILTIN(F,...)
to execute the original built-in function. Note that when using
BUILTIN, F must be a function name and not a function handle.

See also assignin, function_handle, functions, builtin, eval, evalin.

Documentation for feval


Other functions named feval

>> help @
Operators and special characters.

Arithmetic operators.
plus - Plus +
uplus - Unary plus +
minus - Minus -
uminus - Unary minus -
mtimes - Matrix multiply *
times - Array multiply .*
mpower - Matrix power ^
power - Array power .^
mldivide - Backslash or left matrix divide \
mrdivide - Slash or right matrix divide /
ldivide - Left array divide .\
rdivide - Right array divide ./
idivide - Integer division with rounding option.
kron - Kronecker tensor product
pagemtimes - Page-wise matrix multiply
pagetranspose - Page-wise transpose
pagectranspose - Page-wise complex conjugate transpose

Relational operators.
eq - Equal ==
ne - Not equal ~=
lt - Less than <
gt - Greater than >
le - Less than or equal <=
ge - Greater than or equal >=
Logical operators.
relop - Short-circuit logical AND &&
relop - Short-circuit logical OR ||
and - Element-wise logical AND &
or - Element-wise logical OR |
not - Logical NOT ~
punct - Ignore function argument or output ~
xor - Logical EXCLUSIVE OR
any - True if any element of vector is nonzero
all - True if all elements of vector are nonzero

Special characters.
colon - Colon :
paren - Parentheses and subscripting ( )
paren - Brackets []
paren - Braces and subscripting {}
punct - Function handle creation @
punct - Decimal point .
punct - Structure field access .
punct - Parent directory ..
punct - Continuation ...
punct - Separator ,
punct - Semicolon ;
punct - Comment %
punct - Invoke operating system command !
punct - Assignment =
punct - Quote '
punct - Double quote "
transpose - Transpose .'
ctranspose - Complex conjugate transpose '
horzcat - Horizontal concatenation [,]
vertcat - Vertical concatenation [;]
subsasgn - Subscripted assignment ( ),{ },.
subsref - Subscripted reference ( ),{ },.
numArgumentsFromSubscript - Number of arguments for indexing methods
subsindex - Subscript index
metaclass - Metaclass for MATLAB class ?
Bitwise operators.
bitand - Bit-wise AND.
bitcmp - Complement bits.
bitor - Bit-wise OR.
bitxor - Bit-wise XOR.
bitset - Set bit.
bitget - Get bit.
bitshift - Bit-wise shift.

Set operators.
union - Set union.
unique - Set unique.
intersect - Set intersection.
setdiff - Set difference.
setxor - Set exclusive-or.
ismember - True for set member.

See also function_handle.

You might also like