I get 'error using sum' whenever I try to get the mean of some numbers.
조회 수: 2 (최근 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!