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.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.