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

📄 fg_07_01.m

📁 英文书《Digital Signal Processing with Examples in MATLAB》附带的MATLAB实例
💻 M
字号:
% fg_07_01  Nonstationary and stationary waveforms.
N=40; r=.99; s=round(.1*N/2);
Nx=1000; k=0:Nx-1;
randn('state',0);
x=randn(1,Nx);

y=comb(N,s,r,x);
sp_fig(1,9,5.5);
subplot(3,1,1);
axis([0 Nx -1 1]); grid on;
set(gca,'fontsize',16);
set(gca,'xticklabel',[]);
u=.2*(linspace(1,10,Nx).*y+.5*x);
line(0:Nx-1,u,'color','r');
ylabel('x_k');
text(390,1.2,'Nonstationary','fontsize',16);

subplot(3,1,2);
axis([0 Nx -1 1]); grid on;
set(gca,'fontsize',16);
set(gca,'xticklabel',[]);
u=.2*(2*sin(2*pi*k.*(.01+(k/Nx)*.04))+x);
line(0:Nx-1,u,'color','r');
ylabel('x_k');
text(390,1.2,'Nonstationary','fontsize',16);

subplot(3,1,3);
axis([0 Nx -1 1]); grid on;
set(gca,'fontsize',16);
u=0.3*(5*y+.5*x);
line(0:Nx-1,u,'color','b');
xlabel('k'); ylabel('x_k');
text(410,1.2,'Stationary','fontsize',16);

⌨️ 快捷键说明

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