12 lines
303 B
Mathematica
12 lines
303 B
Mathematica
|
|
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];
|
||
|
|
m=length(t1);
|
||
|
|
t3=sum( ((t1-t2)./0.03).^2)/m;
|
||
|
|
output_args=t3^.5;
|
||
|
|
|
||
|
|
end
|
||
|
|
|