stateestimation-ipm-forcomp.../plotAndComparison.m

19 lines
337 B
Mathematica
Raw Normal View History

function plotAndComparison( rVolt,rVAngel,SEVolt,SEVAngel,mVolt )
x=1:length(rVolt);
subplot(2,1,1);
plot(x,rVolt,'r-');
title('<EFBFBD><EFBFBD>ѹ')
hold on
plot(x,SEVolt);
hold on
plot(x,mVolt,'g');
legend('actual','estimate','measure');
subplot(2,1,2);
plot(x,rVAngel,'r-');
hold on
plot(x,SEVAngel);
title('<EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
legend('actual','estimate');
end