资源简介
matlab潮流计算程序,输入输出为excel,另附潮流计算设计报告,不限节点数量,计算结果可靠。
代码片段和文件信息
clear all
N1=input(‘Please enter the number of nodes:N1=‘);
L1=input(‘Please enter the number of branches:L1=‘);
r=input(‘Please enter the number of PV nodes:r=‘);
bb=xlsread(‘/Users/l/Desktop/powerflowdata/input/bb.xlsx‘);
%One route per line.
%The first column is listed as an endpoint and the transformer is negative.
%Second is listed as another endpoint and the transformer is negative.
%Third is listed as R.
%Fourth is listed as X.
%Fifth is listed as K.
nodedata=xlsread(‘/Users/L/Desktop/powerflowdata/input/nodein.xlsx‘);
nodedata=sortrows(nodedata2);
for v=1:N1
nodedata(v6)=v;
end
xh=nodedata(:[16]);
xh=sortrows(xh1);
for v=1:N1
for m=1:L1
if bb(m1)==v
bb(m6)=xh(v2);
end
if bb(m1)==-v
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-09-08 09:36 powerflow\
文件 4817 2018-09-08 09:35 powerflow\powerflowwa.m
文件 2768896 2018-09-08 09:36 powerflow\电力系统分析报告.doc
- 上一篇:测井数据计算地应力剖面MATLAB程序
- 下一篇:蒙特卡洛的matlab实现
评论
共有 条评论