Program_2_2.m
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:0k
源码类别:
语音合成与识别
开发平台:
Matlab
- % Program_2_2
- % Generation of real exponential sequence
- %
- clf;
- a = input('Type in exponent = ');
- K = input('Type in the gain constant = ');
- N = input ('Type in length of sequence = ');
- n = 0:N-1;
- x = K*a.^n;
- stem(n,x);grid;
- xlabel('Time index n');ylabel('Amplitude');
- title(['alpha = ',num2str(a)]);