
- •Xregpointer/logical
- •Value arrays are placed into corresponding structure array elements.
- •Isfield, rmfield, deal, substruct, struct2cell, cell2struct.
- •Is the Java class specified by the character string classname.
- •Cell array functions
- •Vector of row sizes (must sum to row) and n is the vector of column
- •Array functions
- •If an error handler is not specified, the error from the call to
- •Value arrays are placed into corresponding structure array elements.
- •Isfield, rmfield, deal, substruct, struct2cell, cell2struct.
- •Identical way.
- •Idivide - Integer division with rounding option.
- •Vertcat - Vertical concatenation [;]
- •Byte manipulation functions.
- •Object oriented programming functions
- •Value arrays are placed into corresponding structure array elements.
- •In a cell array of strings.
- •If a function is called with two objects with an unspecified
- •If the input object does not match the current definition (as defined
- •Information outside the object array into saveable form (so that a
Vertcat - Vertical concatenation [;]
subsasgn - Subscripted assignment ( ),{ },.
subsref - Subscripted reference ( ),{ },.
subsindex - Subscript index
metaclass - Metaclass for MATLAB class ?
Bitwise operators.
bitand - Bit-wise AND.
bitcmp - Complement bits.
bitor - Bit-wise OR.
bitmax - Maximum floating point integer.
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 arith, relop, slash, function_handle.
<func2str> - Construct a string from a function handle.
FUNC2STR Construct a string from a function handle.
S = FUNC2STR(FUNHANDLE) returns a string S that represents FUNHANDLE.
If FUNHANDLE is a function handle to an anonymous function, S contains
the text that defines that function. If FUNHANDLE is a function
handle to a named function, S contains the name of that function.
When you need to perform a string operation, such as compare or display,
on a function handle, you can use FUNC2STR to construct a string
representing the function.
Examples:
To create a function name string from the function handle, @humps:
funname = func2str(@humps)
funname =
humps
To create a string from an anonymous function:
anontext = func2str(@(x)x/3)
anontext =
@(x)x/3
See also function_handle, str2func, functions.
Reference page in Help browser
doc func2str
<str2func> - Construct a function_handle from a function name string.
STR2FUNC Construct a function_handle from a function name string.
FUNHANDLE = STR2FUNC(S) constructs a function_handle FUNHANDLE to the function named in the string S. The S input must be a scalar string; it cannot be an array or cell array of strings.
You can create a function handle using either the @function syntax or the
STR2FUNC command. You can create an array of function handles from
strings by creating the handles individually with STR2FUNC, and then
storing these handles in a cellarray.
Examples:
To create a function handle from the function name, 'humps':
fhandle = str2func('humps')
fhandle =
@humps
To call STR2FUNC on a cell array of strings, use the CELLFUN
function. This returns a cell array of function handles:
fh_array = cellfun(@str2func, {'sin' 'cos' 'tan'}, ...
'UniformOutput', false);
fh_array{2}(5)
ans =
0.2837
See also function_handle, func2str, functions.
Reference page in Help browser
doc str2func
<functions> - List functions associated with a function_handle.
FUNCTIONS Return information about a function handle.
F = FUNCTIONS(FUNHANDLE) returns, in a MATLAB structure, the function name, type, and other information about FUNHANDLE.
The FUNCTIONS function is used for internal purposes, and is provided
for querying and debugging purposes. Its behavior may change in
subsequent releases, so it should not be relied upon for programming
purposes.
Examples:
To get information on a function handle for the POLY function, type
f = functions(@poly)
f =
function: 'poly'
type: 'simple'
file: '$matlabroot\toolbox\matlab\polyfun\poly.m'
(The term $matlabroot used in this example stands for the directory
in which MATLAB software is installed for your system.)
See also function_handle, func2str, str2func.
Overloaded methods:
mfilt.functions
adaptfilt.functions
Reference page in Help browser
doc functions