In: Electrical Engineering
In MATLAB; 3- Plot a 8V-2KHZ Sine signal in MATLAB. While this signal varies between C = 10uF-100uF in 1uF steps for your application to the serialRLC circuit, calculate the L values for R = 50 Ohm (constant) that can pass the maximum current through the circuit and write to the file. Plot the change graph of the L value calculated according to each C value.
MATLAB Script to plot the sine wave
clc;
clear;
close all;
Vm = 8;
f = 2000;
T = 1/f;
t = 0:T/1000:5*T;
Vin = Vm*sin(2*pi*f*t);
plot(t, Vin, 'linewidth', 2);
grid;
xlabel('Time, t (sec)');
ylabel('Amplitude');
title('The 8V 2 kHz Sine Signal');
After executing we get
Maximum current will flow when the rectance of the capacitor and inductor are the same
Reactance of the capcitor is given as
Reactance of the inductor is given as
The current will be maximum when
MATLAB Script to plot the inductor values
clc;
clear;
close all;
f = 2000;
w = 2*pi*f;
L = [];
for C = 10e-6:1e-6:100e-6
L = [L, 1/(w^2*C)];
end
C = 10e-6:1e-6:100e-6;
C_muF = C*1000000;
L_mH = L*1000;
plot(C_muF, L_mH, 'linewidth', 2);
grid
xlabel('Capacitance, C (\mu F)');
ylabel('Inductance, L (mH)');
After executing we get