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

조회 수: 2 (최근 30일)
Rothsothearith Sam
Rothsothearith Sam 2021년 4월 12일
댓글: Rik 2021년 4월 12일
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