-
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
-
lvbobijiao
matlab仿真对采集数据进行滤波的两种方法:多次平均滤波和一阶滞后滤波的比较。(matlab simulation filtering the collected data in two ways: the average number of first order lag filter and the filter comparison.)
- 2011-04-30 16:36:45下载
- 积分:1
-
ProjectList
this is not a sparta. this is matlab codes
- 2012-08-02 14:29:09下载
- 积分:1
-
anneal_NM
模拟退火和单纯形法相结合的混合算法,用于求解最优化问题中的全局最优解。(Hybrid simulated annealing algorithm and simplex Combination for solving optimization problems in the global optimal solution.)
- 2016-05-16 20:52:30下载
- 积分:1
-
UltimateToolBox93
UltimateToolBox93代码、文档、例子(UltimateToolBox93)
- 2009-03-22 12:58:29下载
- 积分:1
-
DeMat
matlab实现差分进化算法,为初级学者提供帮助(matlab differential evolution algorithm to achieve, to help junior scholars)
- 2011-05-10 19:59:02下载
- 积分:1
-
capon
阵列信号处理,自适应波束形成,Capon算法(array signal processing,adaptive beam forming,Capon)
- 2013-10-14 23:30:08下载
- 积分:1
-
Virtual-modems
调制解调器(即Modem),应用程序编程源码,很好的参考资料。(Modem (ie Modem), application programming source code, a good reference.)
- 2014-02-17 16:40:59下载
- 积分:1
-
GMM_files
matlab guassian markov model
- 2011-01-01 14:10:47下载
- 积分:1
-
DCM_H
用C语言编写的在Simulink环境下对转速可调永磁直流电机进行数值仿真的S函数源代码。该仿真源代码的特点是:能够仿真目前广泛应用的H桥驱动PWM调制调速永磁直流电机。将功率器件H桥与电机本体的数学模型完整的结合到一起。执行效率很高,仿真结果与实验结果非常相近。(C language in the Simulink environment for adjustable speed permanent magnet DC motor simulation S-function source code. The simulation source code features : simulation can be widely applied to the H-bridge PWM drive permanent magnet DC motor speed control. Will power devices H-bridge and motor Ontology integrity of a mathematical model combining together. High efficiency in the implementation of simulation results and experimental results are very similar.)
- 2007-04-04 13:09:29下载
- 积分:1