taking power of elements in matrix

1 vue (au cours des 30 derniers jours)
lo
lo le 14 Mar 2014
I got a matrix c
I want every element in the matrix to take a power of -2
c^-2 does not work
What is the correct code?

Réponse acceptée

José-Luis
José-Luis le 14 Mar 2014
c.^-2

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by