全球旧事资料 分类
实验一
1分析并绘出常用函数a锯齿波;b三角波;c方波;d抽样函数的时域特性波形程序:
clearall¤
t00000101
x1sawtooth2pi50t
产生五个周期锯齿波
subplot221
plottx1
title锯齿波110900623
xlabelt
x2sawtooth2pi50t05产生五个周期三角波
subplot222
plottx2
xlabelt
title三角波110900623x3square2pi50t
产生十个周期方波
subplot223
plottx3
xlabelt
title方波110900623
axis0011212
t4014
x4si
ct
产生抽样信号
subplot224
plottx4
xlabelt
axis550505
title抽样信号110900623
105
005
10
105
005
10
锯齿波110900623
005t
方波110900623
三角波1109006231
05
0
05
1
01
0
005
01
t
抽样信号110900623
05
0
05
005
01
5
0
5
t
t
页脚
f2分析并绘出常用窗函数时域特性波形clearally1boxcar80矩形窗ploty1kaxis1810212gtxst‘矩形窗’holdo
y2tria
g80三角窗ploty2mholdo
y3ha
i
g80汉宁窗ploty3ygtxst‘汉宁窗’holdo
y4hammi
g80海明窗ploty4rgtxst‘海明窗’holdo
y5blackma
80布莱克曼窗ploty5ggtxst‘布莱克曼窗’holdo
y6kaiser807865凯塞贝尔窗ploty6bgtxst‘凯塞贝尔窗’title常用窗函数110900623
常用窗函数110900623
1
矩形窗
08
06
04
02海明窗
0
布莱克曼窗
凯塞贝尔窗
三角窗汉宁窗
020
10
20
30
40
50
60
70
80
页脚
f实验二容1计算序列x
12345与序列h
2235的线性卷积和6点、8点和10点圆周卷积x
12345h
2235yl
co
vx
h
yc
1circo
v2x
h
6yc
2circo
v2x
h
8yc
3circo
v2x
h
10
y001le
gthyl
1
y101le
gthyc
11
y201le
gthyc
21
y301le
gthyc
31subplot221stem
y0yl
ylabel线性卷积subplot222stem
y1yc
1ylabel圆周卷积6subplot223stem
y2yc
2ylabel圆周卷积8subplot224stem
y3yc
3ylabel圆周卷积10axis010040fu
ctio
yccirco
v2x1x2N子程序1ifle
gthx1N
errorNmust
otbelesstha
le
gthofx1e
difle
gthx2N
errorNmust
otbelesstha
le
gthofx2e
dx1x1zeros1Nle
gthx1x2x2zeros1Nle
gthx2
01N1x2x2mod
N1HzerosNNfor
11N
H
cirshiftdx2
1Ne
dycx1Hfu
ctio
ycirshiftdxmN子程序2ifle
gthxN
errorthele
gthofxmustbelesstha
N
页脚
fe
dxxzeros1Nle
gthx
01N1yxmod
mN1
110900623
40
40
30
30
圆周卷积6
线性卷积
20
20
10
10
00
40
2
4
6
110900623
0
8
0
40
圆周卷积10
30
30
圆周卷积8
20
20
10
10
0
0
0
2
4
6
8
0
110900623
2
4
6
110900623
5
r
好听全球资料 返回顶部