Sample the signal x = 10sin2pi64t + sin2pi250t + 20sin2pi256t + 3sin2pi260t + 10sin2pi512t in matlab with 2048Hz sampling frequency and give me the codes
t = 0:1/2048:1-1/2048; x = 10sin(2pi64t) + sin(2pi250t) + 20sin(2pi256t) + 3sin(2pi260t) + 10sin(2pi512*t); sampled_x = x(1:2048:end); plot(t,x,'LineWidth',1.5) hold on stem(t(1:2048:end),sampled_x,'r','LineWidth',1.5) legend('Original Signal','Sampled Signal') xlabel('Time (s)') ylabel('Amplitude')
原文地址: https://www.cveoy.top/t/topic/fsF2 著作权归作者所有。请勿转载和采集!