40 lines
720 B
Mathematica
40 lines
720 B
Mathematica
|
|
function [ output_args ] = plotError( SEVolt,SEVAngle,rVolt,rVAngle,mVolt,PD,PD0,rPD,QD,QD0,rQD,PDi )
|
|||
|
|
|
|||
|
|
subplot(4,1,1);
|
|||
|
|
x=1:length(SEVolt);
|
|||
|
|
plot(x,SEVolt);
|
|||
|
|
hold on
|
|||
|
|
plot(x,rVolt,'r-');
|
|||
|
|
plot(x,mVolt,'g-');
|
|||
|
|
title('<EFBFBD><EFBFBD>ѹ')
|
|||
|
|
legend('SE','Actual','Measurement')
|
|||
|
|
%<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɵı<EFBFBD>־
|
|||
|
|
% t=sparse(length(rVolt),1);
|
|||
|
|
% t(PDi)=.01;
|
|||
|
|
% bar(1:length(t),t);
|
|||
|
|
subplot(4,1,2);
|
|||
|
|
plot(x,SEVAngle);
|
|||
|
|
hold on
|
|||
|
|
plot(x,rVAngle,'r-');
|
|||
|
|
title('<EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
|
|||
|
|
legend('SE','Actual')
|
|||
|
|
x=1:length(PD);
|
|||
|
|
%% PD
|
|||
|
|
subplot(4,1,3);
|
|||
|
|
plot(x,PD);
|
|||
|
|
hold on
|
|||
|
|
plot(x,rPD,'r-');
|
|||
|
|
plot(x,PD0,'g-');
|
|||
|
|
legend('SE','Actual','Measurement')
|
|||
|
|
title('<EFBFBD>й<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
|
|||
|
|
%% QD
|
|||
|
|
subplot(4,1,4);
|
|||
|
|
plot(x,QD);
|
|||
|
|
hold on
|
|||
|
|
plot(x,rQD,'r-');
|
|||
|
|
plot(x,QD0,'g-');
|
|||
|
|
legend('SE','Actual','Measurement')
|
|||
|
|
title('<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
|
|||
|
|
end
|
|||
|
|
|