% Space Vector Modulation Scheme
% Daniel Amireh
% Input Parameters
Vdc = 400; % DC Voltage
Lf = 800e-6; % Inductance
Cf = 400e-6; % Capacitance
Lload = 2e-3; % Load Inductance
Rload = 5; % Load Resistance
f = 50; % Frequency
w =
2 *
pi *
50;
% Angular FrequencyTz = 100e-6; % Sampling Time
Vref = (2/3)*Vdc; % Reference Voltage
% Generation and plotting of PWM
if i>=300 && i<=600
else
end
if i<=100 || i>=400
else
end
if i<=200 || i>=500
else
end
if i>=100 && i<=200 || i>=300 && i<=400 || i>=500
else
end
if i>=100 && i<=400
else
end
if i>=200 && i<=500
else
end
if i<=100 || i>=200 && i<=300 || i>=400 && i<=500
else
end
if i<=300
else
end
end
% plot results
subplot(4,
1,
1) % subplot used to plot more than one graph on the same graph title('
PWM siganls using SVM tehnique'
) %set title ylabel('
V0'
) % set y-axis label
title('
PWM siganls using SVM tehnique'
)
% line to line voltage plots VLAB, VLBC and VLCA
t=.9:.001:1;
f=400;
t=.9:.001:1;
f=400;
t=.9:.001:1;
f=400;
% Phase voltage plots VLAB, VLBC and VLCA
t=.9:.001:1;
f=400;
V=
300*
sin(f*t
)*
2/
3 % Phase voltage from line-to-line voltage
t=.9:.001:1;
f=400;
t=.9:.001:1;
f=400;