-
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
-
mianyi
免疫算法的matlab代码,应该比较好用,谢谢支持!(immune algorithm Matlab code, it should be more convenient, thank you support!)
- 2007-03-20 12:20:00下载
- 积分:1
-
optical-filter
sevenlayer optical filter comparision the analytical method with reflections
- 2011-10-01 17:40:58下载
- 积分:1
-
power_system_simulation-master
用于计算电力系统的节点阻抗或者导纳,还算比较好用。(It can be used to calculate nodal impedance or admittance of power system.)
- 2019-03-03 16:10:15下载
- 积分:1
-
11
说明: matlab科学计算继续上传,一共10个章节,由浅入深,几乎包括了绝大部分的科学计算方法以及仿真。本人把部分算法做了优化,更为完善(matlab scientific computing continue to upload, a total 10 chapters, easy-to-digest, almost, including most of the scientific method of calculation and simulation. I have done a part of algorithm optimization, a more perfect)
- 2008-12-25 16:32:52下载
- 积分:1
-
DOA_Estimating
DOA估计(雷达来波方向估计)是雷达的重要理论,我提供了阵列信号处理中基于MUSIC算法的DOA估计,和基于最大熵法的DOA估计的MATLAB源代码。都是自己仿真用的。(err)
- 2007-12-27 22:38:40下载
- 积分:1
-
sr
说明: 运用龙格库塔算法求解朗之万方程,进而实现随机共振系统(The use of Runge-Kutta algorithm for solving Langevin equation, and then the realization of stochastic resonance systems)
- 2008-06-11 16:28:44下载
- 积分:1
-
ACDCbuckk
simulink model for ac-dc buck converter with voltage mode control
- 2020-11-27 21:09:30下载
- 积分:1
-
imagelossycompress
actually this is a matlab file to compress an image.
- 2011-10-21 09:50:22下载
- 积分:1
-
RobotsLoc
Short M-LAb robotics localize
- 2013-12-25 06:03:30下载
- 积分:1