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
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
Alan Stevens 2021-4-12
mean([1.0411, 1.0184, ...etc])
Enclose the numbers within square brackets.

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by