I get 'error using sum' whenever I try to get the mean of some numbers.
1 次查看(过去 30 天)
显示 更早的评论
Anyone have any idea why?
This is from my command window:
Any help would be appreciated.
1 个评论
Rik
2021-4-12
You're entering the 3 values as parameters, not as an array. You may read the documentation to see some examples.
回答(1 个)
Alan Stevens
2021-4-12
mean([1.0411, 1.0184, ...etc])
Enclose the numbers within square brackets.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!