Resistance Calculator

版本 2.0 (6.4 KB) 作者: Ligong Han
An equivalent resistance calculator for an arbitrary resistor network
1.2K 次下载
更新时间 2015/6/10

查看许可证

The calculation is based on KVL and KCL equations. Set currents on each branch to unknowns. Denote the number of nodes as N, and the number of edges as M. (M-(N-1)) independent loops can be obtained by a breadth-first search, from which (M-(N-1)) KVL equations can be wrote. Together with (N-1) KCL equations, the equivalent resistance can be computed by solving linear equations.

引用格式

Ligong Han (2024). Resistance Calculator (https://www.mathworks.com/matlabcentral/fileexchange/42521-resistance-calculator), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Passive 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
2.0

two improvements regarding time efficiency:
- uses a different approach to find independent loops;
- uses the built-in function graphtraverse to perform BFS.

1.4.0.0

- fixes bugs when parallel resistance exists in the initial net-matrix, such as resistance_calculator([1 2 1;1 2 1],[1 2])

1.3.0.0

- updates vTree
- fixes errors of building KVL equations
- vTree class updated: fixed an error of the 'delChild' method
- Simplify the network before building equations by Y-Delta transform.

1.2.0.0

- Updated vTree

1.1.0.0

rewrote and optimised the whole structure, added two classes

1.0.0.0