Resistance Calculator

バージョン 2.0 (6.36 KB) 作成者: Ligong Han
An equivalent resistance calculator for an arbitrary resistor network
ダウンロード: 1.3K
更新 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 (, MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2012a
Windows macOS Linux
Help Center および MATLAB AnswersPassive についてさらに検索
タグ タグを追加

ヒントを与えたファイル: Round to Electronic Component Values

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート

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

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

- 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.

- Updated vTree

rewrote and optimised the whole structure, added two classes