How to superimpose a pulse (like partial discharge pulse ) over a pure sine wave signal
4 views (last 30 days)
Show older comments
How to superimpose a pulse (like partial discharge pulse ) over a pure sine wave signal to test behavior of electrical equipment to that distortion .
0 Comments
Answers (1)
Mathieu NOE
on 2 Mar 2021
hello
this is a code to generate a gaussian pulse
you can add this to your sine wave
f0 = 2e3;
Var_Sq = 1;
Fs = 1e5;
dt = 1/Fs;
samples = 1e3;
t = dt*(0:samples-1);
offset = 300*dt; % 3 ms delay
signal1 = exp(-((t.^2).*((f0)^2))./(Var_Sq));
signal2 = exp(-(((t-offset).^2).*((f0)^2))./(Var_Sq));
figure(1),plot(t,signal1,'b',t,signal2,'r');grid
0 Comments
Communities
More Answers in the Power Electronics Control
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!