How to create a biphasic rectangular pulse train?

조회 수: 14 (최근 30일)
Keenan Rossetti
Keenan Rossetti 2021년 5월 30일
댓글: Anderson Soares da Silva 2021년 7월 23일
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.

채택된 답변

Jonas
Jonas 2021년 5월 30일
편집: Jonas 2021년 5월 30일
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
Keenan Rossetti
Keenan Rossetti 2021년 5월 31일
Thank you!
Anderson Soares da Silva
Anderson Soares da Silva 2021년 7월 23일
How can I plot this?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Switches and Breakers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by