该复指数序列为:
直接给出MATLAB脚本:
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28clc clear close all n = [-10:10]; alpha = -0.1 + 0.3j; x = exp(alpha*n); subplot(2,2,1); stem(n,real(x),'filled'); title('real part'); xlabel('n'); ylim([-3,2]); subplot(2,2,2); stem(n,imag(x),'filled'); title('imaginary part'); xlabel('n'); subplot(2,2,3); stem(n,abs(x),'filled'); title('magnitude part'); xlabel('n'); subplot(2,2,4); stem(n,(180/pi)*angle(x),'filled'); title('phase part'); xlabel('n');
最后
以上就是眯眯眼猎豹最近收集整理的关于【 MATLAB 】画出一个复指数序列的幅度、相位、实部和虚部的MATLAB脚本的全部内容,更多相关【内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复