function [ output_args ] = RealValuePlot(mPD,mQD,rPD,rQD,mVolt,rVolt,rVAngel) x=1:length(mPD); subplot(2,1,1); % plot(x,mPD); load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\20%\100PD.mat'); t=PD; % plot(x,PD,'kh'); load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\20%\50PD.mat'); t=[t,PD]; % plot(x,PD,'k+'); load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\20%\0PD.mat'); t=[t,PD]; % plot(x,PD,'kp'); % bars=bar(t); % set(bars(1),'FaceColor',[1 1 1]); % set(bars(2),'FaceColor',[1 1 1]); % set(bars(3),'FaceColor',[1 1 1]); % set(bars(4),'FaceColor',[1 1 1]) % set(bars(5),'FaceColor',[1 1 1]); hold on; load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\容量\100PD.mat'); tt=[t,PD]; % plot(x,PD,'kh'); load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\容量\50PD.mat'); tt=[tt,PD]; % plot(x,PD,'k+'); load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\容量\0PD.mat'); tt=[tt,PD]; % plot(x,PD,'kp'); tt=[tt,rPD]; tt=[tt,mPD]; bars=bar([t,tt]); set(bars(1),'FaceColor',[1 1 1]); set(bars(2),'FaceColor',[1 1 1]); set(bars(3),'FaceColor',[1 1 1]); set(bars(4),'FaceColor',[1 1 1]) set(bars(5),'FaceColor',[1 1 1]); legend('0%','50%','100%','实际值','量测值','0%','50%','100%','实际值','量测值'); % plot(x,rPD,'k.'); xlabel('负荷节点号'); ylabel('负荷值/p.u'); %% QD subplot(2,1,2); % plot(x,mQD); hold on; load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\20%\100QD.mat'); t=QD; % plot(x,QD,'k-.'); load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\20%\50QD.mat'); t=[t,QD]; % plot(x,QD,'k--'); load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\20%\0QD.mat'); t=[t,QD]; load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\容量\100QD.mat'); t=[t,QD]; load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\容量\50QD.mat'); t=[t,QD]; load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\容量\0QD.mat'); t=[t,QD]; t=[t,rQD]; tt=[t,mQD]; % plot(x,QD,'k-'); % bar(t); legend('0%','50%','100%','实际值','量测值'); % plot(x,rQD,'k:'); xlabel('负荷节点号'); ylabel('负荷值/p.u'); %% Volt x=1:length(mVolt); figure subplot(2,1,1); % plot(x,mVolt); hold on; load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\20%\100SEVolt.mat'); t=SEVolt; % plot(x,SEVolt,'k-.'); load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\20%\50SEVolt.mat'); t=[t,SEVolt]; % plot(x,SEVolt,'k--'); load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\20%\100SEVolt.mat'); t=[t,SEVolt]; load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\容量\100SEVolt.mat'); t=[t,SEVolt]; load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\容量\50SEVolt.mat'); t=[t,SEVolt]; load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\容量\0SEVolt.mat'); t=[t,SEVolt]; % plot(x,SEVolt,'k-'); % plot(x,rVolt,'k:'); t=[t,rVolt]; tt=[t,mVolt]; % bar(t); legend('0%','50%','100%','实际值','量测值'); %axis([0,22,0.95,1.01]); xlabel('节点号'); ylabel('电压/p.u'); %% VAngle subplot(2,1,2); % plot(x,mVAngel); hold on; load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\20%\100SEVAngel.mat'); t=SEVAngel; % plot(x,SEVAngel,'k-.'); load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\20%\50SEVAngel.mat'); t=[t,SEVAngel]; % plot(x,SEVAngel,'k--'); load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\20%\0SEVAngel.mat'); t=[t,SEVAngel]; % plot(x,SEVAngel,'k-'); % plot(x,rVAngel,'k:'); load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\容量\100SEVAngel.mat'); t=[t,SEVAngel]; load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\容量\50SEVAngel.mat'); t=[t,SEVAngel]; load('D:\Matlab\StateEstimateionYALMIP-LU9\graph\9\20140327\容量\0SEVAngel.mat'); t=[t,SEVAngel]; tt=[t,rVAngel]; % bar(t(2:end,:)); legend('0%','50%','100%','实际值'); %axis([1,22,-0.08,0]); xlabel('节点号'); ylabel('相角/p.u'); end