DMObjNew = power(DMObj1,DMObj2)
performs an element-by-element power of the DataMatrix objects DMObj1
and DMObj2 and places the results in DMObjNew,
another DataMatrix object. In other words, power raises each element in
DMObj1 by the corresponding element in DMObj2.
DMObjNew = power(DMObj1,B)
performs an element-by-element power of the DataMatrix object DMObj1
and B, a numeric or logical array, and places the results in
DMObjNew, another DataMatrix object. In other words,
power raises each element in DMObj1 by the
corresponding element in B.
DMObjNew = power(B,DMObj1)
performs an element-by-element power of B, a numeric or logical array,
and the DataMatrix object DMObj1, and places the results in
DMObjNew, another DataMatrix object. In other words,
power raises each element in B by the
corresponding element in DMObj1.
DMObj1 and DMObj2 must have the same size
(number of rows and columns), unless one is a scalar (1-by-1 DataMatrix object). The
size (number of rows and columns), row names, and column names for
DMObjNew are the same as DMObj1, unless
DMObj1 is a scalar; then they are the same as
DMObj2.
DMObj1 and DMObj2 must have the same size
(number of rows and columns), unless one is a scalar (1-by-1 DataMatrix object). The
size (number of rows and columns), row names, and column names for
DMObjNew are the same as DMObj1, unless
DMObj1 is a scalar; then they are the same as
DMObj2.
Numeric or logical input, specified as a numeric or logical array.
DMObj1 and B must have the same size
(number of rows and columns), unless B is a scalar. The size
(number of rows and columns), row names, and column names for
DMObjNew are the same as DMObj1.
Data Types: double | logical
Note
Arithmetic operations between a scalar DataMatrix object and a nonscalar array are not
supported.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.