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 …

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 …

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 …

Inverse Laplace Transform of a Transfer Function Using Matlab

In this topic, we will find out how to calculate inverse Laplace of a transfer function using Matlab. Let’s find out Inverse Laplace of the following function $X(s)\frac{10{{s}^{2}}+20s+40}{{{s}^{3}}+12{{s}^{2}}+47s+60}=\frac{Numerator}{Denumerator}$ Let’s write a little code in Matlab now: Results: Here, we get the following results: Residue =    95.0000  -120.0000    35.0000 …

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 …

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 …

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 …

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 …
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 …