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 clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.