Commit f967d1a4 authored by Angioni's avatar Angioni

corrected small bug

parent 1b1423aa
......@@ -53,6 +53,7 @@ Combination_devices.Combination_Iph = Combination_Iph;
Combination_devices.Combination_Pflow = Combination_Pflow;
Combination_devices.Combination_Qflow = Combination_Qflow;
Combination_devices.Combination_Pseudo = Combination_Pseudo;
%the accuracy for each class of device is assigned
Accuracy_P = sqrt(2*unc_dev^2); %accuracy of active power injection measurement
Accuracy_Q = sqrt(2*unc_dev^2); %accuracy of active power injection measurement
......@@ -137,13 +138,13 @@ for m=1:GridData.Lines_num
end
end
Combination_devices.P_measure = P_measure;
Combination_devices.Q_measure = Q_measure;
Combination_devices.Vmagn_measure = Vmagn_measure;
Combination_devices.Vph_measure = Vph_measure;
Combination_devices.Imagn_measure = Imagn_measure;
Combination_devices.Iph_measure = Iph_measure;
Combination_devices.Pflow_measure = Pflow_measure;
Combination_devices.Qflow_measure = Qflow_measure;
Combination_devices.Pseudo_measure = Pseudo_measure;
Combination_devices.P_measure = [P_measure;zeros(size(P_measure))];
Combination_devices.Q_measure = [Q_measure;zeros(size(Q_measure))];
Combination_devices.Vmagn_measure = [Vmagn_measure;zeros(size(Vmagn_measure))];
Combination_devices.Vph_measure = [Vph_measure;zeros(size(Vph_measure))];
Combination_devices.Imagn_measure = [Imagn_measure;zeros(size(Imagn_measure))];
Combination_devices.Iph_measure = [Iph_measure;zeros(size(Iph_measure))];
Combination_devices.Pflow_measure = [Pflow_measure;zeros(size(Pflow_measure))];
Combination_devices.Qflow_measure = [Qflow_measure;zeros(size(Qflow_measure))];
Combination_devices.Pseudo_measure = [Pseudo_measure;zeros(size(Pseudo_measure))];
end
\ No newline at end of file
......@@ -134,13 +134,13 @@ for m=1:GridData.Lines_num
end
end
Combination_devices.P_measure = P_measure;
Combination_devices.Q_measure = Q_measure;
Combination_devices.Vmagn_measure = Vmagn_measure;
Combination_devices.Vph_measure = Vph_measure;
Combination_devices.Imagn_measure = Imagn_measure;
Combination_devices.Iph_measure = Iph_measure;
Combination_devices.Pflow_measure = Pflow_measure;
Combination_devices.Qflow_measure = Qflow_measure;
Combination_devices.Pseudo_measure = Pseudo_measure;
Combination_devices.P_measure = [P_measure;zeros(size(P_measure))];
Combination_devices.Q_measure = [Q_measure;zeros(size(Q_measure))];
Combination_devices.Vmagn_measure = [Vmagn_measure;zeros(size(Vmagn_measure))];
Combination_devices.Vph_measure = [Vph_measure;zeros(size(Vph_measure))];
Combination_devices.Imagn_measure = [Imagn_measure;zeros(size(Imagn_measure))];
Combination_devices.Iph_measure = [Iph_measure;zeros(size(Iph_measure))];
Combination_devices.Pflow_measure = [Pflow_measure;zeros(size(Pflow_measure))];
Combination_devices.Qflow_measure = [Qflow_measure;zeros(size(Qflow_measure))];
Combination_devices.Pseudo_measure = [Pseudo_measure;zeros(size(Pseudo_measure))];
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment