stateestimation-ipm/plotAndComparison.m

19 lines
337 B
Matlab

function plotAndComparison( rVolt,rVAngel,SEVolt,SEVAngel,mVolt )
x=1:length(rVolt);
subplot(2,1,1);
plot(x,rVolt,'r-');
title('µçѹ')
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('Ïà½Ç')
legend('actual','estimate');
end