⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 untitled.asv

📁 this file consists of many matlab programs
💻 ASV
字号:
%%linear block coder%%
%%encoder section%%
n=input('enter the value of n')
k=input('enter the value of k')
q=n-k;
disp('the parity check matrix is of dimension')
disp(q)
disp('x')
disp(n)
h=input('enter the parity check matrix of the given dimension')
h1(1:q,1:n)=0;
if size(h)~=size(h1)
    disp('invalid check matrix')
else
    a=eye(q);
    h2(1:q,1:k)=0;
    b=horzcat(h2,a);
    c=h-b;
    c(:,k+1:end)=[];
    p1(:,:)=c;
    disp('the pa
    p=(p1)'
    d=eye(k);
    disp('the generator matrix is')
    g=horzcat(d,p)
end
%%decoder section%%
disp('no. of message bits:')
disp(k)
m=input('enter the message bits')

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -