Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 572 Bytes

README.md

File metadata and controls

10 lines (8 loc) · 572 Bytes

circuit_solver

MATLAB code that finds currents and potential differences in any AC/DC circuit with potential sources.

Program files:

  • circuit.m: class for the circuit object. Allows the user to define a circuit, solve for its parameters and get the results.
  • dioGraph.m: class for the directed graph object that stores the circuit geometry.

Examples:

  • Example 1: Simple DC circuit. Learn how to define the circuit geometry, potential sources and resistances, and get the results.
  • Example 2: AC circuit. See how impedance and phasors are given to the solver.