how to write the mean equation

4 ビュー (過去 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 Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by