Simple question... how do I multiply all elements of a matrix by 2?

1 vue (au cours des 30 derniers jours)
ampaul
ampaul le 23 Juin 2017
Commenté : Stephen23 le 23 Juin 2017
Hi, I have a 5*5 matrix. I would like all elements in this matrix to be divided by two..can someone please remind me how this is possible?
  1 commentaire
Stephen23
Stephen23 le 23 Juin 2017
  • title: "...how do I multiply all elements..."
  • text: "...this matrix to be divided by two..."
So which do you want: multiplication or division?

Connectez-vous pour commenter.

Réponses (0)

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by