Simulation of First-Order RC series circuit based on matlab
Abstract: Matlab is a large-scale software package developed by Mathworks Corporation of the
United States. It is widely used in many fields such as linear algebra, advanced mathematics,
physics, circuit analysis, signal and system, digital signal processing and automatic control. It is
one of the most popular science and engineering calculation software in the world. Matlab is
powerful and has the advantages of simple grammar rules, easy to master, and easy debugging
compared with other high-level languages. In this paper, the Gaussian pulse excitation source,
system transfer function and final response of the first-order RC series circuit are simulated by
Matlab tool, and the error is analyzed accordingly.
Keywords: Matlab RC series circuit error analysis
1.RC circuit
(1) Time constant: There is an important parameter in the RC circuit—the time constant. By
changing this constant, the change of the capacitor charging and discharging transient process can
be observed. In general, the larger the time constant, the longer the charge and discharge time, that
is, the smoother the charge and discharge curve; on the contrary, the steeper the curve.
(2) Application: The so-called "RC circuit" refers to a circuit consisting of a series of resistors
and capacitors in parallel. In an analog circuit, the values of resistor R and capacitor C are
different, and the relationship between input and output and processing waveforms produces
RC,leading to different applications of the circuit. The most common RC circuits are integration
circuits and differential circuits. Since the capacitance in the RC circuit has a charge and discharge
process, the RC circuit can change the phase of the input signal. In addition, the RC circuit can
also be used in the filter circuit, such as high pass filtering, low pass filtering, etc.
2. simulation of RC first-order circuit
(1) Circuit parameter selection
①excitation source: assuming the excitation source is a Gaussian pulse, the mathematical
expression is,
Where is the standard deviation of the Gaussian pulse signal,
where the value = = .Furthermore, the mathematical
expression of the Gaussian pulse signal in the frequency domain can be obtained as follows,
resistor R and capacitor C: assuming R = 100② , C = , then the time constant
.
(2) Determination of intermediate parameters
① The assumed error tolerance is , such that the mathematical expression of
评论5