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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.