资源简介
节点电压法的matlab代码,希望能够给电力专业的你们带来帮助
代码片段和文件信息
%This Program‘s function is to compute the node-voltage at each node
%assuming that the first node is the Ground Node.As the graphic theory
%specificstwo arrays are used to record the parameter of the electrical
%components which are confined to be the following three types: resistor
%capacitor inductance and independent voltage source.
%And its outcome is the voltage values at every node except the Ground node(node1).
N=4; %the number of the nodes
N=input(‘numbers of nodes: ‘);
U=zeros(NN);%This array is used to store the information of voltage difference%
R=ones(NN);%This array is used to store the information of impetance%
for a=1:N %to initial the resistance between any nodes to be infinite namely oc.
for b=1:N
R(ab)=realmax;
- 上一篇:图像相似距离性对比-matlab
- 下一篇:相空间重构matlab程序
评论
共有 条评论