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

2 views (last 30 days)
颯大 髙橋
颯大 髙橋 on 15 Oct 2022
Answered: takemoto on 24 Oct 2022
-1,1のバーカー符号を0,1のバーカー符号にする、または0,1のバーカー符号を作るにはどうすればいいですか?

Answers (1)

takemoto
takemoto on 24 Oct 2022
上記例題の、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

Categories

Find more on Signal Integrity Kits for Industry Standards in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!