Overview
An RC circuit consists of a resistor (R) and a capacitor (C) connected in series. When a voltage
source is applied, the capacitor charges over time, and when the source is removed, it discharges.
This behavior is fundamental in understanding transient responses in electrical circuits.
Step-by-Step Simulation Process
1. Open Simulink: Launch MATLAB and open Simulink by typing simulink in the
MATLAB command window.
2. Create a New Model: In Simulink, create a new blank model.
3. Add Components:
o Voltage Source: From the Simscape > Electrical > Specialized Power Systems >
Sources library, add a DC Voltage Source block.
o Resistor: From the Simscape > Foundation Library > Electrical > Electrical
Elements library, add a Resistor block.
o Capacitor: From the same library, add a Capacitor block.
o Ground: Add an Electrical Reference block to serve as the ground.
o Scope: From the Simulink > Sinks library, add a Scope block to visualize the
voltage across the [Link]+3MathWorks+3MathWorks+3
4. Connect Components: Wire the components to form a series circuit: connect the
positive terminal of the voltage source to one end of the resistor, the other end of the
resistor to one end of the capacitor, and the other end of the capacitor to ground. Connect
the negative terminal of the voltage source to ground.
5. Set Parameters:
o Voltage Source: Set the amplitude to a desired value (e.g., 10 V).
o Resistor: Set the resistance value (e.g., 1 kΩ).
o Capacitor: Set the capacitance value (e.g., 1 μF).
6. Configure Simulation Settings: Set the simulation time (e.g., 0.05 seconds) and choose
an appropriate solver (e.g., ode45).
7. Run Simulation: Start the simulation and observe the voltage across the capacitor using
the Scope [Link]+1MathWorks+1