Info
此问题已关闭。 请重新打开它进行编辑或回答。
how to code for 2 bit encoder and decoder
5 次查看(过去 30 天)
显示 更早的评论
%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 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!