Idivide - Integer division with rounding option.
kron - Kronecker tensor product
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 '
transpose - Transpose .'
ctranspose - Complex conjugate transpose '
horzcat - Horizontal concatenation [,]
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.
Basic array information.
<size> - Size of array.
SIZE Size of array.
D = SIZE(X), for M-by-N matrix X, returns the two-element row vector
D = [M,N] containing the number of rows and columns in the matrix.
For N-D arrays, SIZE(X) returns a 1-by-N vector of dimension lengths.
Trailing singleton dimensions are ignored.
[M,N] = SIZE(X) for matrix X, returns the number of rows and columns in
X as separate output variables.
[M1,M2,M3,...,MN] = SIZE(X) for N>1 returns the sizes of the first N
dimensions of the array X. If the number of output arguments N does
not equal NDIMS(X), then for:
N > NDIMS(X), SIZE returns ones in the "extra" variables, i.e., outputs
NDIMS(X)+1 through N.
N < NDIMS(X), MN contains the product of the sizes of dimensions N
through NDIMS(X).
M = SIZE(X,DIM) returns the length of the dimension specified
by the scalar DIM. For example, SIZE(X,1) returns the number
of rows. If DIM > NDIMS(X), M will be 1.
When SIZE is applied to a Java array, the number of rows
returned is the length of the Java array and the number of columns
is always 1. When SIZE is applied to a Java array of arrays, the
result describes only the top level array in the array of arrays.
Example:
If
X = rand(2,3,4);
then
d = size(X) returns d = [2 3 4]
[m1,m2,m3,m4] = size(X) returns m1 = 2, m2 = 3, m3 = 4, m4 = 1
[m,n] = size(X) returns m = 2, n = 12
m2 = size(X,2) returns m2 = 3
See also length, ndims, numel.
Overloaded methods:
categorical/size
TriRep/size
timer/size
serial/size
tscollection/size
gf/size
InputOutputModel/size
daqdevice/size
daqchild/size
distributed/size
codistributed/size
Composite/size
fints/size
idmodel/size
idfrd/size
iddata/size
idnlmodel/size
idnlgrey/size
idnlfun/size
videosource/size
videoinput/size
visa/size
udp/size
tcpip/size
icgroup/size
icdevice/size
gpib/size
xregpointer/size
guidarray/size
cgoppoint/size
xregdesign/size
designdev/size
coninputfactor/size
candidateset/size
xregtable/size
xreglistctrl/size
xregusermod/size
xregunispline/size
xregtwostage/size
xregmultilin/size
xregmulti/size
xregmodel/size
xreglinear/size
localusermod/size
localtruncps/size
localsurface/size
localpspline/size
localmulti/size
localbspline/size
xregmonitorplotproperties/size
xregdataset/size
sweepsetfilter/size
sweepset/size
mpc/size
opcroot/size
uss/size
umat/size
ufrd/size
ndlft/size
icsignal/size
atom/size
dataset/size
sym/size
Reference page in Help browser
doc size
<length> - Length of vector.
LENGTH Length of vector.
LENGTH(X) returns the length of vector X. It is equivalent
to MAX(SIZE(X)) for non-empty arrays and 0 for empty ones.
See also numel.
Overloaded methods:
categorical/length
timer/length
serial/length
tscollection/length
gf/length
daqdevice/length
daqchild/length
distributed/length
codistributed/length
Composite/length
qfft/length
fints/length
videosource/length
videoinput/length
visa/length
udp/length
tcpip/length
icgroup/length
icdevice/length
gpib/length
xregpointer/length
mbcstore/length
guidarray/length
cgrules/length
designdev/length
des_constraints/length
coninputfactor/length
xregcontainer/length
xregmulti/length
xregcovariance/length
xregmonitorplotproperties/length
xregdataset/length
cgtradeoffkeytable/length
opcroot/length
umat/length
icsignal/length
atomlist/length
sgmltag/length
rptcp/length
dataset/length
Reference page in Help browser
doc length
<ndims> - Number of dimensions.
NDIMS Number of dimensions.
N = NDIMS(X) returns the number of dimensions in the array X.
The number of dimensions in an array is always greater than
or equal to 2. Trailing singleton dimensions are ignored.
Put simply, it is LENGTH(SIZE(X)).
For Java arrays and Java arrays of arrays, NDIMS always returns 2.
See also size.
Overloaded methods:
categorical/ndims
distributed/ndims
codistributed/ndims
Composite/ndims
uss/ndims
umat/ndims
ufrd/ndims
dataset/ndims
Reference page in Help browser
doc ndims
<numel> - Number of elements.
NUMEL Number of elements in an array or subscripted array expression.
N = NUMEL(A) returns the number of elements, N, in array A.
N = NUMEL(A, INDEX1, INDEX2, ...) returns in N the number of
subscripted elements in array A(index1, index2, ...).
MATLAB implicitly calls the NUMEL builtin function whenever an
expression such as A{index1, index2, ...} or A.fieldname generates
a comma-separated list.
It is important to note the significance of NUMEL with regards
to the overloaded SUBSREF and SUBSASGN functions. In the case of
the overloaded SUBSREF function, NUMEL is used to compute the
number of expected outputs (NARGOUT) returned from SUBSREF. For
the overloaded SUBSASGN function, NUMEL is used to compute the
number of expected inputs (NARGIN) to be assigned using SUBSASGN.
The NARGIN value for the overloaded SUBSASGN function consists of
the variable being assigned to, the structure array of subscripts,
and the value returned by NUMEL.
It is vital that class designers ensure that the value of N
returned by the builtin NUMEL function is consistent with the
class design for that object. If the value of N returned by the
builtin NUMEL function is different from either the NARGOUT for
the overloaded SUBSREF function or the NARGIN for the overloaded
SUBSASGN function, then NUMEL needs to be overloaded to return a
value of N that is consistent with the class's SUBSREF and SUBSASGN
functions. Otherwise, MATLAB will produce errors when calling the
overloaded SUBSREF and SUBSASGN functions.
See also size, prod, subsref, subsasgn, nargin, nargout.
Overloaded methods:
categorical/numel
distributed/numel
codistributed/numel
Composite/numel
iddata/numel
rptcp/numel
dataset/numel
sym/numel
Reference page in Help browser
doc numel
<disp> - Display matrix or text.
DISP Display array.
DISP(X) displays the array, without printing the array name. In
all other ways it's the same as leaving the semicolon off an
expression except that empty arrays don't display.
If X is a string, the text is displayed.
See also int2str, num2str, sprintf, rats, format.
Overloaded methods:
opaque/disp
categorical/disp
inline/disp
cdfepoch/disp
timer/disp
serial/disp
memmapfile/disp
ftp/disp
audiorecorder/disp
audioplayer/disp
VideoReader/disp
instrument/disp
vdspdebug/disp
modem.disp
sfit/disp
fittype/disp
cfit/disp
digitalio/disp
daqchild/disp
analogoutput/disp
analoginput/disp
distributed/disp
codistributor2dbc/disp
codistributor1d/disp
codistributed/disp
eclipseide/disp
qfft/disp
ghsmulti/disp
imaqdevice/disp
imaqchild/disp
iviconfigurationstore/disp
icgroup/disp
xregpointer/disp
network/disp
opcda/disp
daitem/disp
dagroup/disp
dataset/disp
vrworld/disp
vrnode/disp
vrfigure/disp
piecewisedistribution/disp
gmdistribution/disp
classregtree/disp
ProbDistUnivParam/disp
ProbDistUnivKernel/disp
ProbDist/disp
NaiveBayes/disp
sym/disp
ccsrtdx/disp
ccsdebug/disp
wptree/disp
wdectree/disp
ntree/disp
laurpoly/disp
laurmat/disp
dtree/disp
Reference page in Help browser
doc disp
<isempty> - True for empty array.
ISEMPTY True for empty array.
ISEMPTY(X) returns 1 if X is an empty array and 0 otherwise. An
empty array has no elements, that is prod(size(X))==0.
Overloaded methods:
categorical/isempty
timer/isempty
tscollection/isempty
gf/isempty
fittype/isempty
codistributed/isempty
Composite/isempty
fints/isempty
idss/isempty
idpoly/isempty
idmodel/isempty
idgrey/isempty
idfrd/isempty
iddata/isempty
idarx/isempty
idnlgrey/isempty
xregpointer/isempty
junit/isempty
guidarray/isempty
cgrules/isempty
cgoptcsol/isempty
cgoppoint/isempty
cgcaloutput/isempty
des_constraints/isempty
cgvariable/isempty
cgnormfunction/isempty
cgnormaliser/isempty
cgmswitchexpr/isempty
cgmodexpr/isempty
cglookuptwo/isempty
cgfuncexpr/isempty
cgfeature/isempty
cgexpr/isempty
xregcontainer/isempty
xregcovariance/isempty
sweepsetfilter/isempty
sweepset/isempty
mpc/isempty
uss/isempty
umat/isempty
ndlft/isempty
atomlist/isempty
atom/isempty
sgmltag/isempty
rptcp/isempty
rptsp/isempty
rptgui/isempty
dataset/isempty
Reference page in Help browser
doc isempty
<isequal> - True if arrays are numerically equal.
ISEQUAL True if arrays are numerically equal.
ISEQUAL(A,B) returns logical 1 (TRUE) if arrays A and B are the same
size and contain the same values, and logical 0 (FALSE) otherwise.
If A is defined and you set B = A, ISEQUAL(A,B) is not necessarily
true. If A or B contains a NaN element, ISEQUAL returns false because
NaNs are not equal to each other by definition.
ISEQUAL(A,B,C,...) returns logical 1 if all the input arguments are
numerically equal, and logical 0 otherwise.
When comparing numeric values, ISEQUAL does not consider the class
of the values in determining whether they are equal. In other words,
INT8(5) and SINGLE(5) are considered equal. This is also true when
comparing numeric values with certain nonnumeric values. Numeric 1
is equal to logical 1. The number 65 is equal to the character 'A'.
When comparing handle objects, use EQ or the == operator to test
whether objects are the same handle. Use ISEQUAL to test if objects
have equal property values, even if those objects are different
handles.
ISEQUAL recursively compares the contents of cell arrays and
structures. If all the elements of a cell array or structure are
numerically equal, ISEQUAL returns 1.
When comparing structures, the order in which the fields of the
structures were created is not important. As long as the structures
contain the same fields, with corresponding fields set to equal values,
isequal considers the structures to be equal.
See also isequalwithequalnans, eq.
Overloaded methods:
categorical/isequal
MException/isequal
timer/isequal
serial/isequal
instrument/isequal
daqdevice/isequal
daqchild/isequal
codistributed/isequal
fints/isequal
imaqdevice/isequal
imaqchild/isequal
iviconfigurationstore/isequal
icgroup/isequal
guidarray/isequal
coninputfactor/isequal
xregcovariance/isequal
mbcinputfactor/isequal
sweepsetfilter/isequal
sweepset/isequal
atom/isequal
laurpoly/isequal
laurmat/isequal
Reference page in Help browser
doc isequal
<isequalwithequalnans> - True if arrays are numerically equal.
ISEQUALWITHEQUALNANS True if arrays are numerically equal.
Numeric data types and structure field order
do not have to match.
NaNs are considered equal to each other.
ISEQUALWITHEQUALNANS(A,B) is 1 if the two arrays are the same size
and contain the same values, and 0 otherwise.
ISEQUALWITHEQUALNANS(A,B,C,...) is 1 if all the input arguments are
numerically equal.
ISEQUALWITHEQUALNANS recursively compares the contents of cell
arrays and structures. If all the elements of a cell array or
structure are numerically equal, ISEQUALWITHEQUALNANS will return 1.
See also isequal, eq.
Overloaded methods:
timeseries/isequalwithequalnans
codistributed/isequalwithequalnans
Reference page in Help browser
doc isequalwithequalnans
Matrix manipulation.
<cat> - Concatenate arrays.
CAT Concatenate arrays.
CAT(DIM,A,B) concatenates the arrays A and B along
the dimension DIM.
CAT(2,A,B) is the same as [A,B].
CAT(1,A,B) is the same as [A;B].
B = CAT(DIM,A1,A2,A3,A4,...) concatenates the input
arrays A1, A2, etc. along the dimension DIM.
When used with comma separated list syntax, CAT(DIM,C{:}) or
CAT(DIM,C.FIELD) is a convenient way to concatenate a cell or
structure array containing numeric matrices into a single matrix.
Examples:
a = magic(3); b = pascal(3);
c = cat(4,a,b)
produces a 3-by-3-by-1-by-2 result and
s = {a b};
for i=1:length(s),
siz{i} = size(s{i});
end
sizes = cat(1,siz{:})
produces a 2-by-2 array of size vectors.
See also num2cell.
Overloaded methods:
ordinal/cat
categorical/cat
inline/cat
memmapfile/cat
InputOutputModel/cat
fittype/cat
codistributed/cat
xregpointer/cat
coninputfactor/cat
uss/cat
umat/cat
ufrd/cat
nominal/cat
dataset/cat
sym/cat
Reference page in Help browser
doc cat
<reshape> - Reshape array.
RESHAPE Reshape array.
RESHAPE(X,M,N) returns the M-by-N matrix whose elements
are taken columnwise from X. An error results if X does
not have M*N elements.
RESHAPE(X,M,N,P,...) returns an N-D array with the same
elements as X but reshaped to have the size M-by-N-by-P-by-...
M*N*P*... must be the same as PROD(SIZE(X)).
RESHAPE(X,[M N P ...]) is the same thing.
RESHAPE(X,...,[],...) calculates the length of the dimension
represented by [], such that the product of the dimensions
equals PROD(SIZE(X)). PROD(SIZE(X)) must be evenly divisible
by the product of the known dimensions. You can use only one
occurrence of [].
In general, RESHAPE(X,SIZ) returns an N-D array with the same
elements as X but reshaped to the size SIZ. PROD(SIZ) must be
the same as PROD(SIZE(X)).
See also squeeze, shiftdim, colon.
Overloaded methods:
categorical/reshape
gf/reshape
InputOutputModel/reshape
codistributed/reshape
xregpointer/reshape
uss/reshape
umat/reshape
ufrd/reshape
ndlft/reshape
sym/reshape
Reference page in Help browser
doc reshape
<diag> - Diagonal matrices and diagonals of matrix.
DIAG Diagonal matrices and diagonals of a matrix.
DIAG(V,K) when V is a vector with N components is a square matrix
of order N+ABS(K) with the elements of V on the K-th diagonal. K = 0
is the main diagonal, K > 0 is above the main diagonal and K < 0
is below the main diagonal.
DIAG(V) is the same as DIAG(V,0) and puts V on the main diagonal.
DIAG(X,K) when X is a matrix is a column vector formed from
the elements of the K-th diagonal of X.
DIAG(X) is the main diagonal of X. DIAG(DIAG(X)) is a diagonal matrix.
Example
m = 5;
diag(-m:m) + diag(ones(2*m,1),1) + diag(ones(2*m,1),-1)
produces a tridiagonal matrix of order 2*m+1.
See also spdiags, triu, tril, blkdiag.
Overloaded methods:
gf/diag
codistributed/diag
uss/diag
umat/diag
ultidyn/diag
ufrd/diag
ndlft/diag
Reference page in Help browser
doc diag
<blkdiag> - Block diagonal concatenation.
BLKDIAG Block diagonal concatenation of matrix input arguments.
|A 0 .. 0|
Y = BLKDIAG(A,B,...) produces |0 B .. 0|
|0 0 .. |
Class support for inputs:
float: double, single
See also diag, horzcat, vertcat
Overloaded methods:
