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

3 次查看(过去 30 天)
颯大 髙橋
颯大 髙橋 2022-10-15
回答: takemoto 2022-10-24
-1,1のバーカー符号を0,1のバーカー符号にする、または0,1のバーカー符号を作るにはどうすればいいですか?

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Signal Integrity Kits for Industry Standards 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!