Effacer les filtres
Effacer les filtres

Modify this code to compute the mean of the row vectors. Although there are only two rows still use a loop to add up A(1, :) + A(:, 2).

1 vue (au cours des 30 derniers jours)

Réponses (1)

madhan ravi
madhan ravi le 1 Fév 2021
help mean
help sum
  2 commentaires
Space Boy
Space Boy le 1 Fév 2021
I got that part and switched the first part to rows:
zeros(1,size(A,1));%
how do I convert the for loop to add the rows not the columnS?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Loops and Conditional Statements 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