How could I generate a biphasic pulse train?

4 ビュー (過去 30 日間)
Abir Ouji
Abir Ouji 2020 年 11 月 9 日
コメント済み: Abir Ouji 2020 年 11 月 22 日
hi :)
i m trying to generate a biphasic pulse train to modulate with speech signal. but all i found is pulse train with positive amplitude only.
how could I generate a biphasic pulse train ? any help ?

採用された回答

Mathieu NOE
Mathieu NOE 2020 年 11 月 9 日
hello
maybe this can help you
freq = 10 ;
Ts=1e-04;
t=0:Ts:1;
angl = 2*pi*(mod(freq*t,1));
% % example 1 : positive square wave / mono phasic pulse train
% square_wav = 0.5*(sign(sin(angl))+1);
% plot(t,square_wav);
% example 2 : bi phasic pulse train
interphase_gap = 10e-3; % gap (in second)
gap_angl = 2*pi*freq*interphase_gap;
angl(angl<=gap_angl/2) = 0;
angl(abs(2*pi-angl)<=gap_angl/2) = 0;
angl(abs(pi-angl)<=gap_angl/2) = 0;
biphasic_pulse_train = sign(sin(angl));
% plot(t,angl);
plot(t,biphasic_pulse_train);
  19 件のコメント
Mathieu NOE
Mathieu NOE 2020 年 11 月 22 日
Glad it helps you
now you can relax a bit !!
good luck for the future
Abir Ouji
Abir Ouji 2020 年 11 月 22 日
yes I feel relieved now hh
thank you :)
you too

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAI for Audio についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by