Charging a RC circuit
Version 1.0.0.0 (1.54 KB) by
Sathyanarayan Rao
This code plots current and electric charge as a function of time for a charging RC circuit.
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:
Cite As
Sathyanarayan Rao (2026). Charging a RC circuit (https://ch.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 LinuxCategories
- Physical Modeling > Simscape Electrical > Electrical Block Libraries > Sources >
- Engineering > Electrical and Computer Engineering > Circuits and Systems >
Find more on Sources in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: VariableCapacitor
Communities
More Files in the Power Electronics Control Community
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
