how to write the mean equation

조회 수: 3 (최근 30일)
Emily Gallagher
Emily Gallagher 2019년 9월 17일
편집: Stephan 2019년 9월 17일
How do I manually enter the mean equation?
  댓글 수: 1
Adam
Adam 2019년 9월 17일
mean of what? There's a mean function that does it for you. Otherwise you can use
doc sum
if you really want to do it without the mean function.
Or you can add all your numbers together in a for loop if you don't want to use sum either.

댓글을 달려면 로그인하십시오.

답변 (1개)

Stephan
Stephan 2019년 9월 17일
편집: Stephan 2019년 9월 17일
A_mean = sum(A,'all')/numel(A)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by