How to create a biphasic rectangular pulse train?

17 visualizaciones (últimos 30 días)
Keenan Rossetti
Keenan Rossetti el 30 de Mayo de 2021
Comentada: Anderson Soares da Silva el 23 de Jul. de 2021
How does one create a biphasic rectangular pulse train where the width and amplitude can be edited. I get how to create a single rectangular pulse but I still can't understand how to create one which is biphasic. The variables for the electrical pulse train are: frequency = 5000Hz , width of pulse = 33µs, amplitude = 760µ Amperes , modulation depth = 0.1.
It should look something like this and the variables can be edited.

Respuesta aceptada

Jonas
Jonas el 30 de Mayo de 2021
Editada: Jonas el 30 de Mayo de 2021
probably something like that:
fs=100000; %sampling freq in Hz
pulsesPerS=5000;
signalDuration=3; % in seconds
amplitude=760*10^-6;
pulseWidth=33*10^-6;
onePeriod=amplitude*[ones(round(pulseWidth*fs),1); -ones(round(pulseWidth*fs),1); zeros(round(1/pulsesPerS*fs)-2*round(pulseWidth*fs),1)];
wholeSignal=repmat(onePeriod,[pulsesPerS*signalDuration 1]);
  4 comentarios
Keenan Rossetti
Keenan Rossetti el 31 de Mayo de 2021
Thank you!
Anderson Soares da Silva
Anderson Soares da Silva el 23 de Jul. de 2021
How can I plot this?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by