Vd = 300;
fs1 = 50;
T = (1/fs1);
fsw = 1e2
t = linspace(0, 2*pi, 100000)
x = sawtooth(50.*t,0.5);

plot(t,x)
grid on