%---------------------------------------------------------------------------- % exa030903, for example 3.9.3 % to obtain the DT…
Hamming 源代码
探索Hamming编码的精妙世界,这里汇集了36个精选资源,专为电子工程师设计。Hamming码以其强大的错误检测与纠正能力,在数据传输、存储及通信系统中扮演着至关重要的角色。无论是初学者还是资深开发者,都能在此找到关于Hamming距离计算、编码实现及其在数字信号处理中的应用实…
N=50; f1=50; f2=120; fs=300; T=1/fs; ws=2*pi*fs; t=(0:N-1)*T; f=sin(2*pi*f1*t)+sin(2*pi*f2*t)+randn(1,N); wh=(hamming(N))'…
/* ID:wangyuc2 PROG:hamming LANG:C++ */ #include #include #include #include #include using namespace std; ifstream…
%第一个滤波器用一维的Hamming窗和一维的Bartlett窗,第二个滤波器用一维的 %Hanning窗和一维的Blackman窗 h5= fwind1(Hd,hamming(21),bartlett(21)); figure,freqz2(h5) …
%分别采用Hamming窗、Bartlett窗、Hanning窗和Blackman窗设计近似圆对称的 %带通滤波器,通频带为[0.1,0.5]。 %首先,创建包含了期望的带通响应的矩阵Hd [f1,f2] = freqspace(21,'meshgrid…
function Filt_win %This program uses the window method to design FIR filters. %The following windows are supported: Rectangul…
/* 2.4 kbps MELP Proposed Federal Standard speech coder version 1.2 Copyright (c) 1996, Texas Instruments, Inc. Texas Instru…
%《MATLAB在电子信息课程中的应用》第七章例7.19程序q719 % 用DFT作谱分析 % 电子工业出版社出版 陈怀琛 吴大正 高西全合著 2001年10月 clear;close all fs=400; T=1/fs; %采样频率为400H…
%《MATLAB在电子信息课程中的应用》第七章例7.24程序q724 % 用各种窗函数设计FIR数字滤波器q724 % 电子工业出版社出版 陈怀琛 吴大正 高西全合著 2001年10月 clear;close all N=21; wc=pi/4;…
#include "hamming.h" /** hamming.c Implement Hamming(15,11) code Hamming(bitstrm, flag) int *bitstrm data bit stream …