Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Matlab  RMSvalue
Posted:
Oct 11, 2012 7:35 AM


Hi,
Is it correct that RMS can be calculated in two ways for my input vector "inVec" ?
RMS1 = sqrt( mean(inVec)^2 + var(inVec) ); RMS2 = sqrt( 1/length(inVec) * sum(inVec.^2) );
ans =
58.8831
ans =
58.8811
Why is there a difference ? Roundoff error or something else ?
I suspect something else.



