3) 用正弦信号的叠加近似合成一频率为50 Hz,幅值为3的方波 MATLAB程序: clear all; fs=10000; t=[0:1/fs:0.1]; f0=50; sum=0; subplot(211) for n=1:2:9;

动态 未结 0 71
小小草
小小草 LV1 2023年9月23日 23:40 发表
以下是补充完整的程序: clear all; fs = 10000; t = 0:1/fs:0.1; f0 = 50; sum = 0; subplot(2,1,1) for n = 1:2:9 fn = (1/n)*sin(2*pi*n*f0*t); sum = sum + fn; plot(t,fn) hold on end plot(t,sum,'k','LineWidth',2) xlabel('时间') ylabel('振幅') title('方波近似合成') subplot(2,1,2) plot(t,sum,'k','LineWidth',2) xlabel('时间') ylabel('振幅') title('合成方波')
收藏(0)  分享
相关标签: 智能问答
问题没解决?让AI助手帮你作答 AI助手
0个回复
  • 消灭零回复