-
11
说明: empirical formula with kaiser
clc
clear all
fs=1000
fc=250
df=50
r=0.001
f=fc/fs
dw=2*pi*(df/fs)
a=-20*log(r)
n=floor(((a-8)/(2.285*dw))+1)
if a>50
b=0.1102*(a-8.7)
elseif a>=21 && a<=50
b=0.5842*((a-21)^0.4)+0.07886*(a-21)
elseif a<21
b=0.0
end
w=kaiser(n,b)
for i=1:n
if i~=(n-1)/2
hd(i)= (2*f*sin((i-((n-1)/2))*2*pi*f))/((i-((n-1)/2))*2*pi*f)
elseif i==(n-1)/2
hd(i)=2*f
end
end
for j=1:n
h(j)=w(j)*hd(j)
end
subplot(3,1,1), plot(w)
subplot(3,1,2), plot(h)
subplot(3,1,3), plot(h,n)
- 2014-12-24 23:20:03下载
- 积分:1
-
IEEE14
使用MATLAB中的simulink,搭建配电网14节点模型。(Using Simulink in the MATLAB, build 14 node model of distribution network.
)
- 2020-11-04 22:29:53下载
- 积分:1
-
modelfilter5
这是一个针对采用三相三线制有源电力滤波器的matlab仿真model,采用一种带积分的位置跟踪滑模控制方法,实现电源电流的追踪控制。(This is a simulation model for the three-phase three-wire active power filter matlab, using a position tracking with integral sliding mode control method to achieve supply current tracking control.)
- 2014-05-19 17:33:44下载
- 积分:1
-
tuxiangpinjie
图像拼接程序,挺好用的,试试看吧,应该可以的,呵呵(Image stitching process, quite good use, and try it)
- 2009-12-15 21:59:05下载
- 积分:1
-
sim4_2
LPC program example
- 2013-09-06 06:57:09下载
- 积分:1
-
carnon
使用matlab编程环境,实现了音乐卡农的自动播放。(use matlab to play the music of caonon。)
- 2012-08-15 16:51:21下载
- 积分:1
-
try-change-sampling-rate
this file is used to change the sampling rate of the ecg signal
- 2011-11-10 18:44:38下载
- 积分:1
-
aco
蚁群算法解决路径规划问题,可以自己设置地图中的障碍,使得规划路径避开障碍。运用蚁群算法计算比较简单。(ACO is one of the Heuristic algorithm,and it has a long history.The program is coded by MATLAB.It can solve the question that mapping the best route.)
- 2020-12-29 09:59:01下载
- 积分:1
-
2
说明: 在处理数据的时候我们经常要算各个区间的频数,但是在matlab中没有这样的命令.当数据比较大的时候自己数就比较麻烦,这里编了个小程序,(Handle data in a time when we often have to count the frequency of each interval, but there is no such matlab in command. When the data when the relatively large number of on its own is too much trouble here编了个small procedures,)
- 2007-09-11 15:10:35下载
- 积分:1
-
34
说明: on bldc motor control fo any applll
- 2010-12-15 14:51:55下载
- 积分:1