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

📄 examp54.m

📁 ADSP TOOLBOX: Version 2.0 and gui m-files
💻 M
字号:
clc,echo on 
%EXAMPLE 54 
T=0.1;t=0:0.05/200:T;
x=cos(200*pi*t)-cos(400*pi*t);
S=500;tn1=0:1/S:T;
xn1=cos(200*pi*tn1)-cos(400*pi*tn1);
f1=alias(100,S);f2=alias(200,S);
xr1=cos(2*pi*f1*t)-cos(2*pi*f2*t);
plot(t,x,t,xr1),hold on
dtplot(tn1,xn1,'o'),hold off,grid,pause(2)

S=300;tn2=0:1/S:T;
xn2=cos(200*pi*tn2)-cos(400*pi*tn2);
f1=alias(100,S);f2=alias(200,S);
xr2=cos(2*pi*f1*t)-cos(2*pi*f2*t);
plot(t,x,t,xr2),hold on
dtplot(tn2,xn2,'o'),hold off,grid,pause(2)

S=70;tn3=0:1/S:T;
xn3=cos(200*pi*tn3)-cos(400*pi*tn3);
f1=alias(100,S);f2=alias(200,S);
xr3=cos(2*pi*f1*t)-cos(2*pi*f2*t);
plot(t,x,t,xr3),hold on
dtplot(tn3,xn3,'o'),hold off,grid
echo off, %end of example

⌨️ 快捷键说明

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