what function can be used to divide matrixes with n length

1 vue (au cours des 30 derniers jours)
Tino
Tino le 25 Avr 2019
Commenté : Star Strider le 29 Avr 2019
Hi,
Please I need a code that will do this computation below
Thanks in advance
Please given x = 1 2 3 4 5...... x.length
and y = 1 2 3 4 5...... y.length
Please how do I get the code to get M
assuming M = 1/1 2/2 3/3 4/4 5/5........

Réponse acceptée

Star Strider
Star Strider le 25 Avr 2019
The must both be the same length, and ideally the same row and column sizes.
M = x ./ y
Note the ‘./’ denoting element-wise division.
  2 commentaires
Tino
Tino le 29 Avr 2019
Thanks Star Strider
Star Strider
Star Strider le 29 Avr 2019
As always, my pleasure.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Tags

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by