0,1のバーカー符号の生成

-1,1のバーカー符号を0,1のバーカー符号にする、または0,1のバーカー符号を作るにはどうすればいいですか?

Antworten (1)

takemoto
takemoto am 24 Okt. 2022

1 Stimme

上記例題の、Bipolar to Unipolar Converterブロックが、それに相当する処理を行っている様に見受けられます。スクリプトであれば、以下の様な処理でいかがでしょうか?
barker = comm.BarkerCode('SamplesPerFrame',10)
barker =
comm.BarkerCode with properties: Length: 7 SamplesPerFrame: 10 OutputDataType: 'double'
seq1 = barker()
seq1 = 10×1
-1 -1 -1 1 1 -1 1 -1 -1 -1
seq2 = (seq1+1)/2
seq2 = 10×1
0 0 0 1 1 0 1 0 0 0

Kategorien

Mehr zu Signal Integrity Kits for Industry Standards finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020a

Gefragt:

am 15 Okt. 2022

Beantwortet:

am 24 Okt. 2022

Community Treasure Hunt

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

Start Hunting!