File Exchange

image thumbnail

Resistance Calculator

version 2.0 (6.36 KB) by Ligong Han
An equivalent resistance calculator for an arbitrary resistor network


Updated 10 Jun 2015

View Version History

View License

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.

Cite As

Ligong Han (2021). Resistance Calculator (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Pradeep Jacob

Does this code work?
Im having trouble getting it to calculate

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Inspired: Round to Electronic Component Values

Community Treasure Hunt

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

Start Hunting!