38 lines
908 B
Matlab
38 lines
908 B
Matlab
clear
|
|
clc
|
|
retail=dlmread('E:\书籍\论文\配电网状态估计\零售业负荷.txt');
|
|
retail=retail/1000;
|
|
retail(length(retail)+1)=retail(end)*0.98;
|
|
tobacco=dlmread('E:\书籍\论文\配电网状态估计\烟草负荷.txt');
|
|
tobacco=tobacco/1;
|
|
tobacco(length(tobacco)+1)=tobacco(end)*1.02;
|
|
residential=dlmread('E:\书籍\论文\配电网状态估计\城镇居民负荷.txt');
|
|
residential=residential/10000;
|
|
residential(length(residential)+1)=residential(end)*0.98;
|
|
figure('Color',[1 1 1]);
|
|
x=0:length(retail)-1;
|
|
subplot(2,2,1);
|
|
plot(x/4,residential);
|
|
xlim([0 24]);
|
|
% ylim([0 1.05]);
|
|
set(gca,'xtick', x)
|
|
xlabel('时刻/时');
|
|
ylabel('kW');
|
|
title('居民负荷');
|
|
% set(gca,'ytick',[]);
|
|
subplot(2,2,2);
|
|
plot(x/4,tobacco);
|
|
xlim([0 24]);
|
|
% ylim([0 1.05]);
|
|
set(gca,'xtick', x)
|
|
xlabel('时刻/时');
|
|
ylabel('kW');
|
|
title('工业负荷');
|
|
subplot(2,2,3);
|
|
plot(x/4,retail);
|
|
xlim([0 24]);
|
|
% ylim([0 1.05]);
|
|
set(gca,'xtick', x)
|
|
xlabel('时刻/时');
|
|
ylabel('kW');
|
|
title('商业负荷'); |