Charging a RC circuit

This code plots current and electric charge as a function of time for a charging RC circuit.

You are now following this Submission

Time dependent current and electric charge of a charging RC circuit are calculated and plotted. Equations of current and electric charge in this code were obtained by applying Kirchhoff's loop rule to a simple RC circuit with a battery.

Reference:

http://physics.bu.edu/~duffy/semester2/c11_RC.html

Cite As

Sathyanarayan Rao (2026). Charging a RC circuit (https://in.mathworks.com/matlabcentral/fileexchange/44752-charging-a-rc-circuit), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: VariableCapacitor

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Communities
Version Published Release Notes Action
1.0.0.0