18 lines
389 B
Mathematica
18 lines
389 B
Mathematica
|
|
function [ output_args ] = StErrorZ( SEVolt,SEPD,SEQD,rVolt,rSEPD,rSEQD,noLoadi)
|
||
|
|
%STERROR Summary of this function goes here
|
||
|
|
% Detailed explanation goes here
|
||
|
|
SEVolt(noLoadi)=0;
|
||
|
|
rVolt(noLoadi)=0;
|
||
|
|
SEPD(noLoadi)=0;
|
||
|
|
SEQD(noLoadi)=0;
|
||
|
|
rSEPD(noLoadi)=0;
|
||
|
|
rSEQD(noLoadi)=0;
|
||
|
|
t1=[SEVolt;SEPD;SEQD];
|
||
|
|
t2=[rVolt;rSEPD;rSEQD];
|
||
|
|
m=sum(find(t1>0));
|
||
|
|
t3=sum( ((t1-t2)./0.03).^2)/m;
|
||
|
|
output_args=t3^.5;
|
||
|
|
|
||
|
|
end
|
||
|
|
|