- clc,clear,close all
- warning off
- format longG
- tic
- % web('halcom.cn') % 参考网站
- % 总负荷
- Psum = [95,90,105,108,110,120,135,145,155,165,160,180,160,150,140,148,158,168,188,210,225,209,180,160,100]-5;
- figure(1),plot(Psum,'b.-');hold on
- % 电负荷
- Pt = [55,48,50,52,55,65,68,75,80,82,81,95,80,80,78,76,78,85,95,100,95,90,80,70,60];
- plot(Pt,'m.-');
- % 冷负荷
- PD = [35,35.5,36,35.5,35.3,35.2,35,37.5,38,39.5,45,46.5,43,42.5,40,44.3,44.8,45.3,46,47,46.5,46,45.5,45,44];
- plot(PD,'g*-');
- % 热负荷
- WD = [43,39,46,43,46,56,59,66,71,73,72,78,71,71,69,67,69,73,78,85,80,75,70,58,55];
- plot(WD,'rs-');
- grid on;axis tight;
- xlabel('时刻');ylabel('负荷/kW');
- set(gcf,'position',[300,200,700,400])
- set(gca,'XTickLabel',{'1:00','5:00','10:00','15:00','20:00','24:00'},'XTick',[1 5 10 15 20 25])
- set(gca,'ylim',[0,250]); % 设置y轴显示范围
- hold off;
复制代码 |