chap1_fig4_4.m

来自「无线通讯系统的matlab仿真程序;主要包括同步」· M 代码 · 共 26 行

M
26
字号
% Chapter 1, Figure 4.4
% Script m-file for plotting Figure 4.4

clc; close all; clear all;

subplot(2,1,1)
n=-1:6;
u=25*ones(1,8);
plot(n,u,'.')
ylabel('\itu\rm(\itn\rm)','FontSize',11)
title('Input of Inherently Discrete-time System','FontSize',11)
subplot(2,1,2)
y(1)=1;
u=25;

for n=1:7
    y(n+1)=0.5*(y(n)+u/y(n));
end
n=-1:6;
plot(n,y,'.')
hold on
plot(n,y,'k:')
xlabel('\itn','FontSize',11)
ylabel('\ity\rm(\itn\rm)','FontSize',11)
title('Output of Inherently Discrete-time System','FontSize',11)

⌨️ 快捷键说明

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