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