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 (2021). Resistance Calculator (https://www.mathworks.com/matlabcentral/fileexchange/42521-resistance-calculator), MATLAB Central File Exchange. Retrieved .
Inspired: Round to Electronic Component Values
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!