⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fexp.m

📁 the code of the book come form the book of marlix laboratory with the book of singal
💻 M
字号:
function fexp(d,w,t1,t2,a)
%绘制复指数信号时域波形程序
%t1: 绘制波形的起始时间
%t2: 绘制波形的终止时间
%d:: 复指数信号复频率实部
%w: 复指数信号复频率虚部
%a:  复指数信号幅度
t=t1:0.01:t2;
f=a*exp((d+i*w)*t);
fr=real(f);
fi=imag(f);
fa=abs(f);
fn=angle(f);
subplot(2,2,1)
plot(t,fr)
axis([t1,t2,-(max(fa)+0.5),max(fa)+0.5]),
title('实部');
subplot(2,2,2)
plot(t,fi)
axis([t1,t2,-(max(fa)+0.5),max(fa)+0.5]),
title('虚部');
subplot(2,2,3)
plot(t,fa)
axis([t1,t2,0,max(fa)+1])
title('模');
subplot(2,2,4)
plot(t,fn)
axis([t1,t2,-(max(fn)+1),max(fn)+1])
title('相角');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -