Built-in MATLAB RMS function

조회 수: 2 (최근 30일)
Vinod
Vinod 2011년 8월 2일
Theoretically, RMS is defined as Rq=sqrt((1/n)*summation(z-zmean)^2))
The MATLAB inbuilt function I found in the help section is as follows: MATLAB code for RMS determination y = sqrt(sum(u.*conj(u))/size(u,1))
Questions: 1)Is 'u' defined by matlab the same as 'z-zmean' elsewhere. 2)The term within summation corresponds to the deviations from each data point. Does the matlab inbuilt function correspond to the same? 3) How does the function 'conj(u)' help in determining deviations from a data point?
Please help me out at the earliest with your valuable suggestion as I have a deadline.
Thanks in advance Vinod

채택된 답변

Jan
Jan 2011년 8월 2일
The RMS formula of gwyddion concerns the term "z-zmean", while MATLAB's RMS concerns u. If u=z-zmean, both formulas reply the same value.
The difference is, that gwyddion considers real values only, while MATLAB cares for complex values by using CONJ in addition. For real values u==conj(u) and:
u .* conj(u) == u .* u == u .^ 2

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by