I get 'error using sum' whenever I try to get the mean of some numbers.
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Anyone have any idea why?
This is from my command window:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/580512/image.png)
Any help would be appreciated.
1 Commento
Rik
il 12 Apr 2021
You're entering the 3 values as parameters, not as an array. You may read the documentation to see some examples.
Risposte (1)
Alan Stevens
il 12 Apr 2021
mean([1.0411, 1.0184, ...etc])
Enclose the numbers within square brackets.
0 Commenti
Vedere anche
Categorie
Scopri di più su Multidimensional Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!