博学躬行,尚志明德。
——内蒙古工业大学校训
- 1 -
幅频特性曲线
Matlab
编程
a=input('type in the first sequence =');
b=input('type in the second sequence =');
c=conv(a,b);
M=length(c)-1;
n=0:1:M;
disp('output sequence =');disp(c)
stem(n,c)
xlabel('Time index n');ylabel('Amplitude');
type in the first sequence =[2 4 6 4 2 0 0 0]
type in the second sequence =[3 -1 2 1]
output sequence =
Columns 1 through 9
6
10
18
16
18
12
8
2
0
Columns 10 through 11
0
0
Undefined function or variable 'ylable'.
Error in ==> E:\Matlab6p5FULL\bin\win32\Untitled.m
On line 8
==> xlabel('Time index n');ylabel('Amplitude');
type in the first sequence =[2 4 6 4 2 0 0 0]
type in the second sequence =[3 -1 2 1]
output sequence =
Columns 1 through 9
6
10
18
16
18
12
8
2
0
Columns 10 through 11
0
0