Computing the rows of the matrix

2 vues (au cours des 30 derniers jours)
Kiruthiga Sekar
Kiruthiga Sekar le 13 Fév 2019
Commenté : Kiruthiga Sekar le 13 Fév 2019
Hi,
I have a 3x100 matrix. And i have values in the first two rows of matrix and i need to compute the ratio of the first two rows and store it it the third row of matrix.
for example,
171.70 160.05 174.08 163.12
132.95 142.27 126.93 147.89
0 0 0 0
how do i do that?
Thanks in advance

Réponse acceptée

madhan ravi
madhan ravi le 13 Fév 2019
Interpreting ratio as division:
a(3,:)=a(1,:)./a(2,:) % where a is your matrix
  1 commentaire
Kiruthiga Sekar
Kiruthiga Sekar le 13 Fév 2019
worked!! thank you!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by