Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: RMS Error question
Date: Thu, 25 Oct 2012 09:42:08 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <k6b1hg$fq1$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-00-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1351158128 16193 172.30.248.45 (25 Oct 2012 09:42:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 25 Oct 2012 09:42:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2119540
Xref: news.mathworks.com comp.soft-sys.matlab:781373

Hi,

I have two vectors and I'd like to calculate the RMS error. Thus, I used the function

r=sqrt(sum((data(:)-estimate(:)).^2)/numel(data));

as found here:
http://www.mathworks.com/matlabcentral/fileexchange/21383-rmse

However, I get the RMS error to be greater than the MAX error! Is this possible?

THanks