-
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
-
Sinusoidal-Signal-Generation
Consider generating 64 samples of a sinusoidal signal of frequency 1KHz, with a
sampling frequency of 8KHz.
- 2012-09-25 11:11:16下载
- 积分:1
-
wind-speed-model-
MATLAB中经典的风速建模,用于风电机组的动态仿真分析等(MATLAB classic wind modeling for dynamic simulation analysis of the wind turbine)
- 2013-03-29 11:34:28下载
- 积分:1
-
pll_sim
这是一个根据锁相环原理编写的MATLAB仿真程序,内有详细注释,同时附带了仿真结果图。(It is MATLAB simulation program of phase locked loop,while with the simulation results Fig.)
- 2010-08-02 11:07:28下载
- 积分:1
-
MATLABSimulationofOFDMSystem
MATLAB Simulation of OFDM System
- 2008-05-23 11:17:45下载
- 积分:1
-
NthrIn2
一个关于机器人轨迹规划的小程序,感觉不错,自己写的,希望对大家有帮助(IT IS about robot,in matlab,maybe it is useful to you ,hope you will like it)
- 2013-12-22 15:33:33下载
- 积分:1
-
MATLAB-shenjingwangluo
MATLAB神经网络实例与精析随书源程序,程序简单明了,有解释,亲测可以应用,是神经网络初学者入门的较好的参考程序(With the instance of MATLAB neural network precision analysis with the source program of the book
)
- 2015-01-15 13:28:41下载
- 积分:1
-
Kernel_PCA
基于核的主分量分析方法的提出者亲自写的程序(基于MATLAB(a MATLAB m-file of Kernel PCA)
- 2009-09-26 20:18:08下载
- 积分:1
-
DMRAS
this is the simulation for adaptive control system
- 2010-07-01 16:18:49下载
- 积分:1
-
LDPC
这里包含使用C、matlab等多种语音以多种方式实现LDPC的多种算法。(This includes using C, matlab, and other voice in a variety of ways to achieve a variety of LDPC algorithm.)
- 2013-10-10 10:50:55下载
- 积分:1