2014-04-14 15:12:07 +08:00
|
|
|
function [ output_args ] = StErrorS( SEVolt,SEVangle,SEPD,SEQD,rVolt,rVangle,rSEPD,rSEQD)
|
|
|
|
|
%STERROR Summary of this function goes here
|
|
|
|
|
% Detailed explanation goes here
|
|
|
|
|
t1=[SEVolt;SEVangle;SEPD;SEQD];
|
|
|
|
|
t2=[rVolt;rVangle;rSEPD;rSEQD];
|
2015-03-18 20:32:01 +08:00
|
|
|
t1=t1(t2~=0);
|
|
|
|
|
t2=t2(t2~=0);
|
2014-04-14 15:12:07 +08:00
|
|
|
m=length(t1);
|
2015-03-18 20:32:01 +08:00
|
|
|
t3=sum( ((t1-t2)./0.999./t2).^2)/m;
|
2014-04-14 15:12:07 +08:00
|
|
|
output_args=t3^.5;
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|