How to create biphasic pulses?
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Marina Babic
am 22 Mär. 2024
Kommentiert: Marina Babic
am 4 Apr. 2024
How do I plot biphasic pulses with following parameters: N = 400 (number of pulses), Tp = 1 (pulse width), d1 = 1 (interphase delay [us]), d2 = 1 (interpulse delay [us]). Let's say the U0=1V. It should look something like this:
0 Kommentare
Akzeptierte Antwort
Chunru
am 22 Mär. 2024
Bearbeitet: Chunru
am 22 Mär. 2024
N = 4; %400; % number of pulses
Tp = 1; % pulse width;
d1 = 1; % interphase delay
d2 = 1; % interpulse delay [us]).
U0 = 1;
% define sampling freq
fs = 10; % MHz (time in us)
% single pulse
x1 = [ ones(round(Tp*fs), 1) % +ve pulse
zeros(round(d1*fs), 1) % d1
-ones(round(Tp*fs), 1) % -ve pulse
zeros(round(d2*fs), 1)]; % d2
x = U0*repmat(x1, N, 1);
t = (0:length(x)-1)/fs;
stairs(t, x);
grid on
ylim([-1 1]*1.5*U0)
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Specialized Power Systems finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!