已知输入信号x(t)=cos(10t)+cos(20t)+cos(30t),用matlab画出x(t)在0到5秒内的波形的代码
时间: 2024-06-04 18:11:20 浏览: 182
【matlab代码】生成sinc波形信号
5星 · 资源好评率100%
Sure, the code would be:
t = 0:.01:5;
x = cos(10*t) .* cos(20*t) .* cos(30*t);
plot(t,x);
xlabel('Time (s)');
ylabel('Signal Amplitude');
title('Signal x(t) over time');
阅读全文