-
mini2
clear all
clc
t=0:1/1000:10-1/1000
s=sin(2*pi*t)
snr=20
s_power=var(s) varience of s
linear_snr=10^(snr/10)
factor=sqrt(s_power/linear_snr)
noise=randn(1,length(s))*factor
x=s+noise Ó É SNR¼ Æ Ë ã Ë æ » úÔ ë É ù
x1=noise Ô ë É ùÔ ´ Ê ä È ë
x2=noise
w1=0 È ¨Ï µ Ê ý ³ õ Ö µ
w2=0
e=zeros(1,length(x))
y=0
u=0.05
for i=1:10000 LMSË ã ·¨
y(i)=w1*x1(i)+w2*x2(i)
e(i)=x(i)-y(i)
w1=w1+u*e(i)*x1(i)
w2=w2+u*e(i)*x2(i)
end
figure(1)
subplot(4,1,1)
- 2010-10-26 16:41:03下载
- 积分:1
-
Burg
自己编写的现代谱估计方法中的Burg算法,并和MATLAB中的函数pburg函数进行对比,两个函数性能相当,便于大家学习掌握这个算法。(Modern spectral estimation methods have written Burg algorithm, and MATLAB functions pburg function comparison, the performance of the two functions is quite near to make you master this algorithm easily.)
- 2021-04-23 17:08:48下载
- 积分:1
-
Matlab
quantm computing applicad to knapsack problem
- 2014-12-19 03:40:13下载
- 积分:1
-
antcolonyoptimization-ACO
仿生优化算法,antcolonyoptimization,ACO(Bionic optimization algorithm,antcolonyoptimization,ACO)
- 2013-11-13 21:33:29下载
- 积分:1
-
nibianqi
说明: 逆变器模型。使用在PMSM中的三相交流逆变器(Inverter model. PMSM used in the three-phase AC inverter)
- 2011-03-16 14:29:00下载
- 积分:1
-
My_HermitePolynomial
计算高斯Hermite多项式的Matlab程序,并绘制2维和3为高斯Hermite多项式图。(Gaussian Hermite polynomial calculation Matlab program, and draw two-dimensional and three Gaussian Hermite polynomial map.)
- 2013-11-02 16:54:35下载
- 积分:1
-
robothaptik1
puma机械臂的运动仿真实例,主要设计运动学和动力学(puma manipulator motion simulation, kinematic and dynamic main design)
- 2013-11-28 11:09:11下载
- 积分:1
-
a-simple-transmit-diversity-technique-for-wireles
a simple transmit diversity technique for wireless communications
- 2013-05-17 09:37:04下载
- 积分:1
-
dspFIR
数字信号处理的滤波器设计,有限长冲击响应FIR滤波器,(Digital signal processing filter design, finite impulse response (FIR) filter,)
- 2014-01-30 17:29:25下载
- 积分:1
-
untitled1
一个简单的小程序,可以随便下载看的,只是做一点简单的说明罢了(A example for GUI)
- 2010-07-22 11:15:54下载
- 积分:1