Power Experiment 01 Completion
Power Experiment 01 Completion
Experiment Name: Analysis of Fourier Series & Transients of RL Series Circuit by Using
MATLAB.
Theory:
Consider a series RL circuit. At t=0 if switch is closed then we got transient response.
di
Vmsin(ωt+α) = Ri + L
dt
MATLAB CODE:
eqn=L*diff(i,t)+i*R==Vm*sin(2*pi*f*t+a);
% Differentiate symbolic expression or function
2
(140 (7 sin( /3 + 8 t ) - 200 cos( /3 + 8 t )))/(40000 + 49) + (exp(-(7 t)/25) (14000 - 490 3 1/2))/(40000 2
+ 49)
1
data1
0.8 0.9
0.8
0.6
0.7
0.6
0.4
0.5
0.2 0.4
0.3
0
0.2
0.1
-0.2
0
-6 -4 -2 0 2 4 6
t
Output:
Problem-02: Plot Fourier series of square wave.
MATLAB CODE:
x=(4/pi)*sin((2*n-1)*t)/(2*n-1)
% Fourier series Of Square wave
OUTPUT:
x=
0.9
1
0.8
0.5 0.7
0.6
0 0.5
0.4
-0.5 0.3
0.2
-1 0.1
0
-6 -4 -2 0 2 4 6
t
MATLAB CODE:
x=(8/pi^2)*(1/(2*n+1)^2)*cos((2*n+1)*t)
% Fourier series Of Triangular wave
OUTPUT:
x = (228155022448185*cos(t*(2*n + 1)))/(281474976710656*(2*n + 1)^2)
(228155022448185*cos(t*(2*n + 1)))/(281474976710656*(2*n + 1)^2)
0.8
0.8
0.6
0.7
0.4
0.6
0.2
0 0.5
-0.2
0.4
-0.4
0.3
-0.6
0.2
-0.8
0.1
-1
0
-6 -4 -2 0 2 4 6
t
Conclusion:
The different equation can be solved in MATLB easily. And the best output we can get
from MATLAB.