Charging a RC circuit

This code plots current and electric charge as a function of time for a charging RC circuit.
1.7K Downloads
Updated 18 Dec 2013

View License

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 (2024). Charging a RC circuit (https://www.mathworks.com/matlabcentral/fileexchange/44752-charging-a-rc-circuit), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: VariableCapacitor

Communities

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0