<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.2 20190208//EN" "JATS-journalpublishing1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" article-type="research-article" dtd-version="1.2" xml:lang="en">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">ijeap</journal-id>
<journal-title-group><journal-title>International Journal of Engineering and Applied Physics</journal-title><abbrev-journal-title>IJEAP</abbrev-journal-title></journal-title-group>
<issn publication-format="electronic">2737-8071</issn>
<publisher><publisher-name>International Journal of Engineering and Applied Physics</publisher-name></publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">187</article-id>
<title-group><article-title>The Study of Simulation of RC, RL and RLC Circuits Using Matlab in Teaching</article-title></title-group>
<contrib-group><contrib contrib-type="author" corresp="yes"><name><surname>Asnaoui</surname><given-names>Hassan</given-names></name><xref ref-type="aff" rid="aff1"/><email>hassan.asnaoui@gmail.com</email></contrib><contrib contrib-type="author"><name><surname>Kalis</surname><given-names>M.</given-names></name><xref ref-type="aff" rid="aff2"/></contrib><contrib contrib-type="author"><name><surname>Boulaalam</surname><given-names>M.</given-names></name><xref ref-type="aff" rid="aff1"/></contrib></contrib-group>
<aff id="aff1">Regional Directorate of the National Education Ministry, Primary Education and Sports in Boulemane-Missour. Abu Hanifa secondary school Ksabi Moulouya</aff><aff id="aff2">Research Team " Innovative Research &amp; Applied Physics", Faculty of Sciences, Moulay Ismail University, Meknes, Morocco</aff>
<pub-date publication-format="electronic" date-type="pub"><day>14</day><month>6</month><year>2024</year></pub-date>
<volume>4</volume><issue>2</issue><fpage>955</fpage><lpage>960</lpage>
<history><date date-type="received"><day>22</day><month>1</month><year>2024</year></date><date date-type="rev-recd"><day>20</day><month>4</month><year>2024</year></date><date date-type="accepted"><day>11</day><month>5</month><year>2024</year></date></history>
<permissions><copyright-year>2024</copyright-year><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><license-p>This is an open access article under the CC BY 4.0 license.</license-p></license></permissions>
<self-uri xlink:href="https://ijeap.org/ijeap/article/view/187"/>
<abstract><p>Involvement of simulation in teaching is to provide better support and more clear and visual operation of complex circuits to the faculty members of electrc circuits in classroom teaching. The simulations available for the simulation of electrical circuits are MATLAB, C+, and many more. The use of simulation in classroom teaching provides additional support to the faculty members, and it is better than the time-consuming black board practice. This paper provides a case study of electrc circuits such as RC, RL, and RLC in Matlab software. Different electrics circuit models are prepared on Matlab software and generate simulation voltage forms. This paper is helpful for to find the applications of Matlab in teaching.</p></abstract>
<kwd-group kwd-group-type="author"><kwd>Matlab</kwd><kwd>Simulation</kwd><kwd>Electrical circuits</kwd><kwd>Teaching</kwd></kwd-group>
</article-meta>
</front>
<body>
<sec id="sec1">
  <title>1. INTRODUCTION</title>
  <p>MATLAB is a widely used tool in the electrical and electronic fields. The original concept of a small and handy tool has evolved to become a workhorse widely used for research and design purposes [1]. It is now accepted that MATLAB and its numerous toolboxes can replace and/or enhance the use of traditional simulation tools for advanced engineering applications [2]. With all these features, MATLAB, with or without toolboxes, has come to occupy an indisputable position in the list of available software in all technical institutions [3]. In fact, it has become a de facto standard. Since it is already easily available in institutions, in this paper it is proposed to use MATLAB to create a GUI-based package for effective teaching of electricity [4].</p>
  <p>Teachers are constantly in search of better methods to teach students [5]. Where the learning process was a teacher-centred one, whereas the recent trend is to adopt a student-centred learning process. To make teaching highly efficient and successful, it is required to diversify modern teaching methods [6]. For this reason, we will employ modern technology to study some physical phenomena, especially in the field of electricity, through scientific experiments to confirm the textbook results for the baccalaureate level, such as RC, RL, and RLC. And in this regard, in [7], the authors presented a derivation of fractional-order circuit elements. Furthermore, the authors obtained experimentally the curves of charge and discharge of different capacitors in electrical RC circuits and charge variation in an electrical LC circuit; compared with classical simulations [8, 9]. With these, we can predict the reactions of various systems, such as RC, RL, and the oscillations of an RLC circuit. Through the use of simulations in Matlab, it becomes possible to accurately model the behaviour of such system.</p>
</sec>
<sec id="sec2">
  <title>2. ELECTRICAL APPLICATION</title>
  <p>In the second-level sciences baccalaureate in Morocco, for the electricity part, there are three main circuits combining resistors (R), capacitors (C) and inductors (L). These are the RC, RL, and RLC circuits, where the circuit elements can be connected in series, parallel, or a combination, as these circuits are typically utilised in physics laboratory programmes.</p>
  <p>In a series RC circuit, when measuring across the resistor, a capacitor is a high-pass filter. This is due to the generator tension of the capacitors reactance, where the electric current is proportional to the voltage in the RC circuit. In the tension response, the interesting point occurs when the power is equally divided between the resistor and the capacitor. The voltage versus time for the capacitor charging and discharging are given as Eqs. (1) and (2) [10, 11].</p>
  <graphic mimetype="image" mime-subtype="png" xlink:href="image001.png" />
  <p>In a series RL circuit, again measuring across the resistor and for coil L, the current versus time is given as Eqs. (3) and (4) [12–15].</p>
  <graphic mimetype="image" mime-subtype="png" xlink:href="image002.png" />
  <p>Equations (3) and (4) represent represent establishment and interruption of current, respectively.</p>
  <p>In a series RLC circuit, the combination of the inductor, the resistor, and the capacitor. At this moment, the circuit is closed, and we intend to study the behaviour and variation of circuit electrical parameters after connection. The integral-differential equation which corresponds this considered circuit (RLC) is the</p>
  <graphic mimetype="image" mime-subtype="png" xlink:href="image003.png" />
  <graphic mimetype="image" mime-subtype="png" xlink:href="image004.png" />
  <p>The basic Matalb process is represented in Fig. 1. A circuit is represented in Matlab in four blocks: the Matlab interface, the Simulink library, the Simscope, and the SimpowerSystems. As the following chart shows.</p>
  <p><inline-graphic mimetype="image" mime-subtype="png" xlink:href="image005.png" />Matlab interface</p>
  <graphic mimetype="image" mime-subtype="png" xlink:href="image006.png" />
  <graphic mimetype="image" mime-subtype="png" xlink:href="image007.png" />
  <p><inline-graphic mimetype="image" mime-subtype="png" xlink:href="image008.png" />Simpower Systems</p>
  <p>Figure 1. Chart of circuit analysis by Matlab</p>
</sec>
<sec id="sec3">
  <title>3. METHOD AND RESULTS</title>
  <p>In laboratory experiments, due to the lack of equipment, we have combined simulation techniques in Matlab to study electrical circuits as RC, RL, and RLC, which consist of the following parameters: resistor R, capacitor C, and induction L.</p>
  <sec>
    <title>3.1. Series RC circuit</title>
    <p>Illustrative example. Consider the RC electrical circuit (Fig. 2) with R = 10Ω, C = 1000μF, and E = 15V for capacitor charging. And R = 1KΩ, C = 1000μF, E = 0V, R = 10Ω, C = 1000μF, and capacitor initial voltage 15v, for capacitor discharge.</p>
    <fig id="fig2"><label>Figure 2</label><caption><p>RC circuit (capacitor charging and discharging) obtained by Matlab</p></caption><graphic mimetype="image" mime-subtype="png" xlink:href="image009.png" /></fig>
  </sec>
  <sec>
    <title>3.2. Series RL circuit</title>
    <p>Illustrative example. Consider the RL electrical circuit (Fig. 3) with R = 10Ω, L = 0.1H, and E = 15V for power establishment. And R = 10 Ω; L = 0.1H; E = 0V; and inductor initial voltage = 1.5 for interruption of power.</p>
    <fig id="fig3"><label>Figure 3</label><caption><p>RL circuit (establishment and interruption of current) obtained by Matlab</p></caption><graphic mimetype="image" mime-subtype="png" xlink:href="image010.png" /></fig>
  </sec>
  <sec>
    <title>3.4. Series RLC circuit</title>
    <p>For this example, the RLC circuit is made up: the inductance L = 1H, resistor R and capacitor C=0.01F. In this electrical assembly we will study the effect of resistor on the RLC circuit response, with; R<sub>1</sub>=1Ω, R<sub>2</sub> = 18Ω, and R<sub>3</sub> = 21Ω.</p>
    <fig id="fig4"><label>Figure 4</label><caption><p>RLC Circuit obtained by Matlab</p></caption><graphic mimetype="image" mime-subtype="png" xlink:href="image011.png" /></fig>
    <p>After that click in Scope, the voltage as a function of time is displayed in Figs. 5, 6, 7, 8, and 9.</p>
  </sec>
</sec>
<sec id="sec4">
  <title>4. RESULTS AND DISCUSSIONS</title>
  <p>The simulations consisted of the following analysis of RC, RL, and RLC circuits: Figures 5.6.7.8.9 compare, for several simulation types, the responses of different circuits. These figures show the voltage form obtained from simulating in Matlab. The results show the charging and discharging of the capacitor (Fig. 5).</p>
  <fig id="fig5"><label>Figure 5</label><caption><p>Obtained result from Simulink model of RC circuit On the other hand, Fig. 6 represents the response of the RL circuit and shows the current</p></caption><graphic mimetype="image" mime-subtype="png" xlink:href="image012.png" /></fig>
  <p>establishment and the breakage (cancellation) of current.</p>
  <fig id="fig6"><label>Figure 6</label><caption><p>Obtained result from Simulink model of RL circuit</p></caption><graphic mimetype="image" mime-subtype="png" xlink:href="image013.png" /></fig>
  <p>The experimental data and model predictions of RL and RC are shown in Figs. 5 and 6. The increase in time With the voltage and current increasing until reaching a maximum value of 15V at t = 4s for RC and 1.5A at 0.045s, this is due to the total charge of the capacitor for RC and the current establishment for RL. Then, the voltage and current remain constant, which shows both a transient and permanent regime. On the other hand, the decrease in voltage and current as a function of time is due to the capacitor discharge for RC and the current breakdown for RL. The response of RC and RL circuits is required for selecting the optimum operating conditions for further experiments, where the amplitude response of an RLC was measured (Figs. 7, 8, and 9). Shows the output from the voltage analysis. This is because the measurement voltages are made with Matlab, and we showed that the amplitude depends on R with: R<sub>1</sub> = 1Ω, R<sub>2</sub> = 18Ω, and R<sub>3</sub> = 21Ω.</p>
  <fig id="fig7"><label>Figure 7</label><caption><p>Showing response of RLC series circuit for R<sub>1</sub>= 1Ω</p></caption><graphic mimetype="image" mime-subtype="png" xlink:href="image014.png" /></fig>
  <p>We repeat the same previous experiment, where each time we change the value of <italic>R</italic> so that: <italic>R</italic><sub>1</sub>&lt;<italic>R</italic><sub>2</sub>&lt;<italic>R</italic><sub>3</sub>, so we get the following curves:</p>
  <fig id="fig8"><label>Figure 8</label><caption><p>Showing response of RLC series circuit for R<sub>2</sub>= 18Ω</p></caption><graphic mimetype="image" mime-subtype="png" xlink:href="image015.png" /></fig>
  <fig id="fig9"><label>Figure 9</label><caption><p>Showing response of RLC series circuit for R<sub>3</sub>= 21Ω</p></caption><graphic mimetype="image" mime-subtype="png" xlink:href="image016.png" /></fig>
  <p>When the value of <italic>R</italic> increases, the obtained oscillations become damped and the semi-period <italic>T</italic>gradually increaseses.</p>
  <p>If the resistance value <italic>R</italic> is weak (case <italic>R</italic>=<italic>R</italic><sub>1</sub>), the amplitude of the vibrations gradually decreases, and the resulting system is called a quasi-periodic system.</p>
  <p>If the value of the resistance <italic>R</italic> is large (the case <italic>R</italic>=<italic>R</italic><sub>3</sub>), the amplitude decreases without oscillation, and the resulting system is called an aperiodic system.</p>
  <p>While there is a resistor that separates the quasi-periodic system from the aperiodic system, it is called</p>
  <p>the critical resistor Rc.With <italic>R<sub>C</sub></italic><inline-graphic mimetype="image" mime-subtype="png" xlink:href="image017.png" /><sup>= 20Ω</sup></p>
  <p>Discharging a charged capacitor, in a series coil <italic>RLC</italic>, leads to the appearance of free and damped oscillations. We say that the series circuit <italic>RLC</italic> is a free electrical oscillator and a damped one.</p>
  <p>According to the value of <italic>R</italic> as the circuit <italic>RLC</italic>, we distinguish oscillation systems: periodic system - quasi-periodic system - critical system - non-periodic system.</p>
  <p>These results are in agreement with the results of the books of second-year scientific baccalaureate students [14]. For example, the response RC, RL, and RLC Ciruits, was Resistor dependent obtained in [15].</p>
</sec>
<sec id="sec5">
  <title>5. ADVANTAGE AND LIMITATIONS</title>
  <p>The following advantages are derived when using Matlab in teaching electric circuits courses:</p>
  <p>a. It provides better visual operation of electrical circuits.</p>
  <p>b. The use of software in the classroom saves time.</p>
  <p>c. With its user-friendly interface, its simulation speed, and its capability of simulating any type of power converter and control circuit.</p>
  <p>d. Students can use this software for their projects. This paper provides a basic approach to dealing with the software. The only limitation with this software approach is that knowledge of computers and in-depth knowledge of electrical circuits are necessary to identify the true results.</p>
  <graphic mimetype="image" mime-subtype="png" xlink:href="image018.png" />
  <p>In this paper, we have presented an experiment based on simulation in Matlab to create electrical circuits, namely: RC, RL, and RLC. These experiments were equivalent to those conducted in a teaching laboratory setting. Through the simulation results, we can understand the behaviour or response of an electrical circuit. With the finality of exploring the validity of the obtained results, we compare our results with the results of a second-level baccalaureate textbook, physics and chemistry specialty. For this reason, in this article, it is found that the effectiveness and efficiency of using simulations in physical experiments, especially to study electrical circuits such as RC, RL, and RLC.</p>
</sec>

</body>
<back>
<ref-list><title>References</title><ref id="ref1"><label>1</label><mixed-citation>P. Verma, “Circuit analysis using MATLAB/Simulink®,” <italic>Int. J. Enhanced Res. Sci. Technol. Eng.</italic>, vol. 3, p. 268, 2014.</mixed-citation></ref><ref id="ref2"><label>2</label><mixed-citation>H. Le-Huy, “Modeling and simulation of electrical drives using MATLAB/Simulink and Power System Blockset,” in <italic>Proc. 27th Annu. Conf. IEEE Ind. Electron. Soc. (IECON)</italic>, 2001, vol. 3, pp. 1603–1611.</mixed-citation></ref><ref id="ref3"><label>3</label><mixed-citation>A. A. Musa, R. Abdel, G. Abdel, H. Anoud, A. Elzain, and A. S. Aasim, “Transfer function and Z-transform of an electrical system in MATLAB/Simulink,” <italic>Eur. J. Math. Stat.</italic>, vol. 4, pp. 9–20, 2023, doi: 10.24018/ejmath.2023.4.3.190.</mixed-citation></ref><ref id="ref4"><label>4</label><mixed-citation>Z. Zhang, C. T. Hansen, and M. A. E. Andersen, “Teaching power electronics with a design-oriented, project-based learning method at the Technical University of Denmark,” <italic>IEEE Trans. Educ.</italic>, vol. 59, pp. 32–38, 2016.</mixed-citation></ref><ref id="ref5"><label>5</label><mixed-citation>S. Bhagat, C. Archana, K. Khade, A. Budukh, A. Bhosale, and V. K. Mathew, “Simulation of Li-ion battery using MATLAB-Simulink for charging and discharging,” <italic>E3S Web Conf.</italic>, vol. 353, Art. no. 03001, 2022, doi: 10.1051/e3sconf/202235303001.</mixed-citation></ref><ref id="ref6"><label>6</label><mixed-citation>V. F. Pires, “Teaching nonlinear modeling, simulation, and control of electronic power converters using MATLAB/Simulink,” <italic>IEEE Trans. Educ.</italic>, vol. 45, pp. 253–261, 2002.</mixed-citation></ref><ref id="ref7"><label>7</label><mixed-citation>D. W. Hart, “Circuit simulation as an aid in teaching the principles of power electronics,” <italic>IEEE Trans. Educ.</italic>, vol. 36, pp. 10–16, 1993.</mixed-citation></ref><ref id="ref8"><label>8</label><mixed-citation>A. Angelo and J. Beltran, “Design of a linear integrated op amp circuit: An alternative solution to differential equation model of RLC circuit,” <italic>Lyceum Philippines Univ. Res. J.</italic>, vol. 2, pp. 49–65, 2007.</mixed-citation></ref><ref id="ref9"><label>9</label><mixed-citation>M. M. Khader, J. F. Gómez-Aguilar, and M. Adel, “Numerical study for the fractional RL, RC, and RLC electrical circuits using Legendre pseudo-spectral method,” <italic>Int. J. Circuit Theory Appl.</italic>, vol. 49, pp. 3266–3285, 2021.</mixed-citation></ref><ref id="ref10"><label>10</label><mixed-citation>R. Y. Kezerashvili, “Teaching RC and RL circuits using computer-supported experiments,” <italic>IERI Procedia</italic>, vol. 2, pp. 609–615, 2012.</mixed-citation></ref><ref id="ref11"><label>11</label><mixed-citation>R. Banchuin, “On the test of novel constitutive relation of capacitor for electrical circuit analysis: A fractal calculus-based approach,” <italic>COMPEL – Int. J. Comput. Math. Elect. Electron. Eng.</italic>, vol. 42, pp. 506–525, 2023.</mixed-citation></ref><ref id="ref12"><label>12</label><mixed-citation>P. Moonmuang, M. Faseehuddin, T. Pukkalanun, N. Herencsar, and W. Tangsrirat, “VDTA-based floating/grounded series/parallel R-L and R-C immittance simulators with a single grounded capacitor,” <italic>AEU – Int. J. Electron. Commun.</italic>, vol. 160, Art. no. 154502, 2023.</mixed-citation></ref><ref id="ref13"><label>13</label><mixed-citation>Y. Liu, L. Chen, X. Wu, A. M. Lopes, and F. Chen, “Theoretical analysis and experimental verification of fractional-order RC cobweb circuit network,” <italic>Chaos, Solitons Fractals</italic>, vol. 172, Art. no. 113541, 2023.</mixed-citation></ref><ref id="ref14"><label>14</label><mixed-citation>H. El Ghzizal, <italic>Massar Chimie Physique, 2ème Bac Sciences Physiques Chimie</italic>, 2017, pp. 102–138.</mixed-citation></ref><ref id="ref15"><label>15</label><mixed-citation>A. Nazih, H. Elminir, W. E. Raslan, and I. L. El-Kalla, “Numerical simulation of parallel RLC model using different fractional derivative operators,” <italic>J. Eng. Res.</italic>, vol. 7, pp. 108–112, 2023.</mixed-citation></ref></ref-list>
</back>
</article>
