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

📄 m_p.m

📁 经典《信号与系统》教程的matlab例程,对深入理解信号与系统相关概念有很大帮助
💻 M
字号:
%==========================================================================
%  Name:M_P.m
%  
%==========================================================================
clear;close all,
t=-2:0.01:2;
x1=1+cos(2*pi*t)/2+cos(4*pi*t)+2*cos(6*pi*t)/3;
x2=1+cos(2*pi*t+4)/2+cos(4*pi*t+8)+2*cos(6*pi*t+12)/3;;
x3=1+cos(2*pi*t+6)/2+cos(4*pi*t-2.7)+2*cos(6*pi*t+0.93)/3;;
x4=1+cos(2*pi*t+1.2)/2+cos(4*pi*t+4.1)+2*cos(6*pi*t-7.02)/3;;


subplot(221);plot(t,x1,'b');grid on;title('The sequence x1(t)');
subplot(222);plot(t,x2,'r');grid on;title('The sequence x2(t)');
subplot(223);plot(t,x3,'k');grid on;title('The sequence x3(t)');xlabel('Time t');
subplot(224);plot(t,x4,'g');grid on;title('The sequence x4(t)');xlabel('Time t');


⌨️ 快捷键说明

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