MATLAB(2,1,3)卷积与维特比解码代码.docVIP

  • 52
  • 0
  • 约1.89千字
  • 约 3页
  • 2020-12-17 发布于浙江
  • 举报
卷积编码 function output = convolutionX( X ) %UNTITLED Summary of this function goes here % Detailed explanation goes here n=length(X); n1=0.01:0.01:n; for(i=1:n) is((i-1)*100+1:i*100)=X(i); end figure subplot(2,1,1) plot(n1,is); axis([0,n+1,-0.1,1.1]); title(原始信号) grid Y=[0 0 0]; %output(1)=mod(sum(Y),2); %output(2)=mod((Y(1)+Y(3)),2); for(i=1:n) Y(1)=Y(2); Y(2)=Y(3); Y(3)=X(i); Y; output(2*(i-1)+1)=mod(sum(Y),2); output(2*(i-1)+2)=mod((Y(1)+Y(3)),2); end %output(2*n+3)=X(n); %output(2*n+4)=X(n); %output(2*n+5)=0; %output(2*n+6)=0; output; a=length(output); a; t=0

文档评论(0)

1亿VIP精品文档

相关文档