- 59
- 0
- 约 12页
- 2016-09-22 发布于湖北
- 举报
信号与系统
实验报告
实验三 周期信号的频谱分析
实验
其中,0?=?0.5π,要求将一个图形窗口分割成四个子图,分别绘制cos(?0t)、cos(3?0t)、cos(5?0t)?和x(t)?的波形图,给图形加title,网格线和x坐标标签,并且程序能够接受从键盘输入的和式中的项数。
程序如下:
clear,%Clear all variables
close all,%Close all figure windows
dt = 0.00001; %Specify the step of time variable
t = -2:dt:4; %Specify the interval of time
w0=0.5*pi; x1=cos(w0.*t); x2=cos(3*w0.*t); x3=cos(5*w0.*t);
N=input(Type in the number of the harmonic components N=);
x=0;
for q=1:N;
x=x+(sin(q*(pi/2)).*cos(q*w0*t))/q;
end
subplot(221)
plot(t,x1)%Plot x1
axis([-2 4 -2 2]);
grid on,
title(signal cos(w0.*t))
subplot(2
您可能关注的文档
最近下载
- DB4201_T653-2021_建设工程监理规程_武汉市 .docx VIP
- 《机动车驾驶人考试场地及其设施设置规范》GA10292022.docx VIP
- 兰州中考体育题库及答案.doc VIP
- 《GBT 31439.1-2025 波形梁钢护栏 第1部分:两波形梁钢护栏》练习题试卷及参考答案.pdf VIP
- (五调)武汉市2026届高三年级五月调研考试语文试卷(含答案及解析).docx
- 银行自助设备维护操作流程.docx VIP
- 认知觉醒:伴随一生的学习方法论.docx VIP
- 电气CAD实用教程!低压配电、变电站等电气主接线图的识读与绘制,80页PPT可下载!.pptx VIP
- 装饰工程施工说明范本.docx VIP
- 行政及工资关系介绍信.docx VIP
原创力文档

文档评论(0)