how to write the mean equation
이전 댓글 표시
How do I manually enter the mean equation?
댓글 수: 1
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개)
A_mean = sum(A,'all')/numel(A)
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!