load curve daily power consumption

조회 수: 10 (최근 30일)
syazwan sabri
syazwan sabri 2020년 7월 10일
편집: KSSV 2020년 7월 10일
i have problem that line..i have no idea how to solve it..can anybody help
  댓글 수: 2
KSSV
KSSV 2020년 7월 10일
time interval ..? There is space between them check...
syazwan sabri
syazwan sabri 2020년 7월 10일
Yeah.. Sorry for mistaken.. But it still an error

댓글을 달려면 로그인하십시오.

채택된 답변

KSSV
KSSV 2020년 7월 10일
편집: KSSV 2020년 7월 10일
data=[0 2 17;
2 6 12;
6 9 3;
9 12 15; 12 14 12;
14 16 14; 16 18 16; 18 20 18; 20 22 16;
22 23 12; 23 24 6];
power=data(:, 3)
Dt=data(:,2) - data(:,1)
Power_Generated=power.*Dt
Total_power1=sum(Power_Generated)
Total_power2=power.*Dt;
DATA=[data(:,1) data(:,2) power];
Average_load=Total_power2/sum(Dt);
peak_load=max(power);
Daily_LF=Average_load/peak_load*100;
Results=[Average_load peak_load*ones(size(Daily_LF)) Daily_LF];
L=length(data);
timeinterval=data(:,1:2) ;
t = sort(reshape(timeinterval,1,2*L));
for n = 1:L
P(2*n-1) = power(n);
P(2*n) = power(n);
end
plot(t,P)
xlabel(['Timer, Hr'])
ylabel(['Power, MW'])
title('Generation Power, MW versus time, hour')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Language Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by