Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to code for 2 bit encoder and decoder

5 ビュー (過去 30 日間)
Bablu Singh
Bablu Singh 2018 年 11 月 8 日
閉鎖済み: Sabin 2024 年 12 月 13 日
%I am facing problem in saving this msg bit as it is and decoding of the message (msg encoded) plz help % Samples to collect levels of signal in 2 bit % L=2^n(bit)=4 t=0:1/3:1; f=9; x=sin(2*pi*f*t); %encoder for i=1:4
if x(i)>=-0.8660 && x(i)<0 msg=[-1 -1] elseif x(i)==0 msg=[-1 1] elseif x(i)>0 && x(i)<0.8660 msg=[1 -1] elseif x(i)>=0.8660 msg=[1 1] end end

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by