2
Ich bin auf diesem Code arbeiten Liner Stromverbrauch Ergebnis zu erhalten:Matlab Plots Bereich Färbung
P_out = 0:100;
Po= 130 ;
dP= 4.7 ;
N_TRX=6;
P_max= 20;
p_sleep= 75;
if 0< P_out <= P_max
P = N_TRX*Po+N_TRX*dP*P_out;
else
P=N_TRX* p_sleep;
end
%%%%%
Po= 130 ;
dP= 2.8 ;
N_TRX=6;
P_max= 40;
if 0< P_out <= P_max
P1= N_TRX*Po+N_TRX*dP*P_out;
else
P1=N_TRX* p_sleep;
end
%%%%%
Po= 130 ;
dP= 5.9 ;
N_TRX=2;
P_max= 20;
if 0< P_out <= P_max
P2= N_TRX*(Po+dP*P_out);
else
P_in2=N_TRX* p_sleep;
end
%%%%%
Po= 110 ;
dP= 4.2;
N_TRX=6;
P_max= 20;
if 0< P_out <= P_max_macro
P3= N_TRX*Po+N_TRX*dP*P_out;
else
P3=N_TRX* p_sleep;
end
figure, plot(P_out,P,'b'); hold on, plot(P_out,P1,'g'); hold on, plot(P_out,P2,'r'); hold on,plot (P_out,P3,'y'),hold off
Die Handlung ist hier:
und ich möchte den Bereich zwischen füllen die Linien mit Farben, um 4 Bereiche mit ihrer Linienfarbe zu färben.