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

📄 dm07301.m

📁 the code of the book come form the book of marlix laboratory with the book of singal
💻 M
字号:
%dm07301
%绘制周期矩形脉冲信号波形
t=0:0.01:10;
subplot(3,1,1)
f1=square(t);                       %产生周期为2π的方波信号
plot(t,f1)
axis([0,10,-1.2,1.2])
set(gcf,'color','w')
subplot(3,1,2)
f1=square(2*pi*t);                  %产生周期为1的方波信号
plot(t,f1)
axis([0,10,-1.2,1.2])
subplot(3,1,3)
f1=square(2*pi*t,80);                %产生周期为1、占空比为80%的矩形脉冲信号
plot(t,f1)
axis([0,10,-1.2,1.2])

⌨️ 快捷键说明

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