📄 chap1_fig4_4.m
字号:
% 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -