Effacer les filtres
Effacer les filtres

I get 'error using sum' whenever I try to get the mean of some numbers.

3 vues (au cours des 30 derniers jours)
Rothsothearith Sam
Rothsothearith Sam le 12 Avr 2021
Commenté : Rik le 12 Avr 2021
Anyone have any idea why?
This is from my command window:
Any help would be appreciated.
  1 commentaire
Rik
Rik le 12 Avr 2021
You're entering the 3 values as parameters, not as an array. You may read the documentation to see some examples.

Connectez-vous pour commenter.

Réponses (1)

Alan Stevens
Alan Stevens le 12 Avr 2021
mean([1.0411, 1.0184, ...etc])
Enclose the numbers within square brackets.

Catégories

En savoir plus sur Multidimensional Arrays 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