Here, we will find phase voltages VAN, VBN, and VCN, shown in the following figure, using Matlab. By applying KVL, we come up with the following three equations: $\begin{matrix} 110\angle {{0}^{o}}=(1+j1){{I}_{1}}+(5+j12){{I}_{1}} & \cdots & (1) \\ 110\angle -{{120}^{o}}=(1-j2){{I}_{2}}+(3+j4){{I}_{2}} & \cdots & (2) \\ 110\angle {{120}^{o}}=(1-j0.5){{I}_{3}}+(5-j12){{I}_{3}} & \cdots & (3) \\\end{matrix}$ …

Read More »## RL Circuit Charging Discharging | Matlab

In this tutorial, we will see an inductor current behavior in an RL Circuit using Matlab. For the simplified RL circuit demonstrated below, an electric current flowing through an inductor is zero initially. At t = 0, the switch actuated from location a to b, where it stayed for 1 …

Read More »## Time Constant of RC Circuit | Matlab

In this tutorial, we will draw capacitor voltage for different time constants and analyze how it affects the charging time. Let’s assume we have a capacitor of $10\mu F$ capacitance and want to draw voltage across capacitor if: $\begin{align} & (a)R=1k\Omega \\ & (b)R=10k\Omega \\ & (c)R=0.11k\Omega \\\end{align}$ We will use the …

Read More »## Average Power RMS Voltage RMS Current Power Factor Calculation using Matlab

In this tutorial, we will calculate average power, RMS Voltage, RMS Current as well as power factor using Matlab. Let’s say we have following values of voltage and current: $\begin{align} & v(t)=10\cos (120\pi t+{{30}^{o}}) \\ & and \\ & i(t)=6\cos (120\pi t+{{60}^{o}}) \\\end{align}$ We use the following formula to calculate the RMS …

Read More »## Nodal Analysis using Matlab | Nodal Analysis using Matrices

In this tutorial, we will find node voltages for a very simple resistive circuit using Nodal Analysis. While applying KCL, we will assume that currents leaving the node are positive and entering the node are negative. Keeping that fact in mind, let’s write node voltages for each node in the …

Read More »## Mesh Analysis using Matlab | Loop Analysis using Matlab

In this tutorial, we will find current which is flowing through resistor RB and the power supplied by the voltage source of 10V. First, let’s assign currents for each loop as I1, I2 and I3 and the power supplied by the source is 10*I1 as we can see from the …

Read More »## Diode Characteristic Curve Calculation at Different Temperatures using Matlab

In this article, we will draw characteristic curves of a diode at different temperatures. From the following equation, it is evident that the thermal voltage and the reverse saturation current of a diode depend on the temperature. $i={{I}_{s}}\left[ {{e}^{\left( {}^{v}/{}_{n{{V}_{T}}} \right)}}-1 \right]\text{ }\cdots \text{ (1)}$ IS is reverse saturation current …

Read More »## RLC Circuit Transfer Function Calculation using Matlab

Plot the magnitude and the phase response of the voltage transfer function of series RLC circuit for frequencies from 10 Hz to 100kHz.: Here, we will compute the phase and the magnitude of the voltage transfer function Vo/V1 for frequencies ranging from 10 Hz to 100 kHz. The transfer function can …

Read More »## Node Voltages Calculation in Resistive Circuit using Matlab

Determine the voltage at each node of the circuit: FROM ABOVE CIRCUIT, we can write the following set of equations: $\begin{matrix} \begin{align} & {{I}_{{{R}_{4}}}}={{I}_{{{R}_{1}}}}+{{I}_{{{R}_{3}}}} \\ & {{I}_{{{R}_{2}}}}={{I}_{{{R}_{3}}}} \\ & {{V}_{1}}={{V}_{A}} \\\end{align} & \cdots & (1) \\\end{matrix}$ Or \[\begin{matrix} \begin{align} & \frac{{{V}_{C}}}{{{R}_{4}}}=\frac{{{V}_{1}}-{{V}_{C}}}{{{R}_{1}}}+\frac{{{V}_{B}}-{{V}_{C}}}{{{R}_{3}}} \\ & \frac{{{V}_{1}}-{{V}_{B}}}{{{R}_{2}}}=\frac{{{V}_{B}}-{{V}_{C}}}{{{R}_{3}}} \\\end{align} & \cdots & (2) \\\end{matrix}\] We can rewrite …

Read More »## Series RL Circuit Analysis using Matlab

Determine the voltage across the inductor in series RL circuit : Let us compute the voltage across the capacitor for t≥0 using the following expression: ${{v}_{L}}(t)={{V}_{s}}{{e}^{-t/\tau }}u(t)$ Whereas the source voltage is 1V and time constant τ=L/R. You May Also Read: Series RL Circuit Analysis Theory It’s time to write …

Read More »## RL Circuit Analysis using Matlab

Determine the voltage across the inductor in an RL circuit: Let us compute the voltage across the inductor for t≥0 using the following expression: ${{v}_{L}}(t)=-R{{I}_{lo}}{{e}^{-t/\tau }}u(t)$ Whereas the inductor initial current is 1mA and time constant τ=L/R=5ms. You May Also Read: Series RL Circuit Analysis Theory It’s time to write …

Read More »## Capacitor Charging Equation | RC Circuit Charging | Matlab

In this tutorial, we will Calculate Voltage Across the Capacitor in RC Circuit Using Matlab.RC circuit charging expression is also discussed. Determine the voltage across the capacitor: Let us compute the voltage across the capacitor for t≥0 using the following expression: ${{v}_{C}}(t)={{V}_{s}}(1-{{e}^{-t/\tau }})u(t)$ Whereas the source voltage is 1V and …

Read More »## RC Circuit Analysis using Matlab

Determine the voltage across the capacitor: Let us compute the voltage across the capacitor for t≥0 using the following expression: ${{v}_{C}}(t)={{V}_{c0}}{{e}^{-t/\tau }}u(t)$ Whereas the capacitor initial voltage is 5V and time constant τ=RC=0.2s. You May Also Read: Series RC Circuit Analysis Theory It’s time to write some code in Matlab …

Read More »## LC Circuit Analysis using Matlab

Determine the voltage across the capacitor and the current through the inductor: Using the following formulae, we can easily obtain the voltage across the capacitor and current through an inductor for time t≥0, ${{i}_{L}}(t)=-\sqrt{\frac{C}{L}}{{V}_{c0}}\sin (\frac{1}{\sqrt{LC}}t)u(t)$ ${{v}_{C}}(t)={{V}_{c0}}\cos (\frac{1}{\sqrt{LC}}t)u(t)$ Where ${{V}_{co}}=1V\text{ }\therefore \text{Capacitor Initial Voltage}$ Now, let us write Matlab code to …

Read More »## How to Find Equivalent Resistance in a Complex Circuit | Matlab

Normally, complex circuits are not organized in a nice and clean way for us to follow. They’re oftentimes represented in a way that makes it impossible to recognize which components are connected in parallel and which are in series. The core intent of this tutorial is to show that how …

Read More »