代码搜索:Matlab;trainning

找到约 10,000 项符合「Matlab;trainning」的源代码

代码结果 10,000
www.eeworm.com/read/18028/771088

matlab

msg = randint(4000,1,2,139); %产生随机数 t = poly2trellis(7,[171 133]); %定义trellis code = convenc(msg,t); %卷积编码 ncode = awgn(code,6,'measured',244); %加噪声 qcode = quantiz(ncode,[0.001,.1,.3,.5,.
www.eeworm.com/read/18028/771089

matlab

n = 7; %码长 k = 4; %信息位长 A = [ 1 1 1;1 1 0;1 0 1;0 1 1 ]; G = [ eye(k) A ]; %生成矩阵 H = [ A' eye(n-k) ]; %校验矩阵 %编码 msg = [ 1 1 1 1 ]; %信息比特 code = mod(ms
www.eeworm.com/read/18028/771090

matlab

www.eeworm.com/read/18028/771091

matlab

function [output, state] = encode_bit(g, input, state) [n,k] = size(g); m = k-1; for i=1:n output(i) = g(i,1)*input; for j = 2:k output(i) = xor(output(i),g(i,j)*state(j-1)); end
www.eeworm.com/read/18028/771092

matlab

st1 = 27221; st2 = 4831; %定义随机数产生的状态 n = 7; k = 4; %汉明码的参数 msg = randint(k*500,1,2,st1); %信息序列 code = encode(msg,n,k,'hamming/binary'); %编码 %产生突发错误,使得相邻码字发生错误 errors = zeros(si
www.eeworm.com/read/18028/771093

matlab

snr=10; N=input('number'); %数据长度 Es=3; g=[1 0 1;0 0 1]; %卷积码编码器两路的冲激响应 x=round(rand(1,N)); %产生信源 for i=1:N/2; %串并变换 x1(i)=x(2*i-1); x2(i)=x(2*i); end; z=cnvc(g,x1,x2); %进行(3,2,3)卷积码编码
www.eeworm.com/read/18028/771094

matlab

R = 2; %插值因子 hm = mfilt.cicinterp(R); fs = 22.05e3; % 原始采样频率:22.05 kHz. n = 0:5119; % 5120个采样点 x = sin(2*pi*1e3/fs*n); %原始信号 y_fi = filter(hm,
www.eeworm.com/read/18028/771095

matlab

function out = CICinterp(r,x); Hm = mfilt.cicinterp(r); %使用默认的CIC阶数和差分时延,以及字长 x_real = real(x); x_imag = imag(x); out_real = filter(Hm,x_real); %实部和虚部分开滤波 out_imag = filter(Hm,x_imag); outt
www.eeworm.com/read/18028/771096

matlab

function out = halfdec(n,fp,l,x) b = firhalfband(n,fp,'dev'); %半带滤波器系数 hf = mfilt.firdecim(l,b); %利用半带滤波器设计一个多相抽取滤波器 x_real = real(x); x_imag = imag(x); out_real = filter(hf,x_real); %实部和虚部
www.eeworm.com/read/18028/771097

matlab

function out = halfinterp(n,fp,l,x) b = firhalfband(n,fp,'dev');%firhalfband(n,fp); %半带滤波器系数 hf = mfilt.firinterp(l,b); %使用半带滤波器设计一个多相插值滤波器 x_real = real(x); x_imag = imag(x); out_real = fi