フィルターのクリア

Root mean square calculations

1 回表示 (過去 30 日間)
Stefan
Stefan 2014 年 8 月 2 日
コメント済み: Image Analyst 2014 年 8 月 2 日
Hello,
I want to calculate the sqaure root of the mean sqaured differences of succesisve numbers. Can anyone explain of how to calculate this in matlab if possible with an example for a set of numbers.
thanks.

採用された回答

Image Analyst
Image Analyst 2014 年 8 月 2 日
Stefan, what happened when you tried this:
m = sort(rand(1, 7)); % create sample data
mDiff = diff(m)
meanSquareOfDiffs = mean(mDiff .^ 2)
ms = sqrt(meanSquareOfDiffs)
It seems pretty easy if you just take it a step at a dime. Heck, you could even have used a for loop if you really got stuck and needed a simple brute force method. What did you try that didn't work?
  1 件のコメント
Image Analyst
Image Analyst 2014 年 8 月 2 日
By the way, this (what you described) is not the RMS like you or someone tagged this post with.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by