stateestimateionyalmip-lu9-.../StErrorS.m

14 lines
336 B
Mathematica
Raw Normal View History

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];
t1=t1(t2~=0);
t2=t2(t2~=0);
m=length(t1);
t3=sum( ((t1-t2)./0.999./t2).^2)/m;
output_args=t3^.5;
end