当前位置:网站首页>【数字信号处理】线性常系数差分方程 ( 使用 matlab 求解 “ 线性常系数差分方程 “ 示例 | A 向量分析 | B 向量分析 | 输入序列分析 | matlab 代码 )
【数字信号处理】线性常系数差分方程 ( 使用 matlab 求解 “ 线性常系数差分方程 “ 示例 | A 向量分析 | B 向量分析 | 输入序列分析 | matlab 代码 )
2022-04-21 13:09:00 【韩曙亮_】
文章目录
一、使用 matlab 求解 “ 线性常系数差分方程 “ 示例
描述 某个 " 线性时不变系统 " 的 " 线性常系数差分方程 " 如下 :
y ( n ) = 1.5 x ( n ) + 0.7 y ( n − 1 ) y(n) = 1.5x(n) + 0.7y(n-1) y(n)=1.5x(n)+0.7y(n−1)
输入序列 :
x ( n ) = δ ( n ) x(n) = \delta (n) x(n)=δ(n)
边界条件 / 初始条件 :
y ( − 1 ) = 1 y(-1) = 1 y(−1)=1
求该 LTI 系统的 输出序列 ;
线性常系数差分方程 公式 :
y ( n ) = ∑ i = 0 M b i x ( n − i ) − ∑ i = 1 N a i y ( n − i ) n ≥ M y(n) = \sum_{i = 0}^M b_i x(n - i) - \sum_{i = 1}^N a_i y(n - i) \ \ \ \ \ \ \ n \geq M y(n)=i=0∑Mbix(n−i)−i=1∑Naiy(n−i) n≥M
1、B 向量元素 : x(n) 参数
讨论 B B B 向量 , B B B 向量是 x ( n ) x(n) x(n) 的参数 , 有几个 x ( n ) x(n) x(n) 项 , B B B 向量 就有几个元素 ;
上式中 M = 0 M = 0 M=0 , x ( n ) x(n) x(n) 的项只有 1 1 1 项 , ∑ i = 0 M b i x ( n − i ) \sum_{i = 0}^M b_i x(n - i) ∑i=0Mbix(n−i) 只有一项 , 加和式只有一项 , 因此对应的 B B B 向量 , 只有 1 1 1 个元素 ;
B
= [
1.5];
- 1.
2、A 向量元素 : y(n) 参数
下面讨论 A A A 向量 , A A A 向量是 y ( n ) y(n) y(n) 的参数 , 有几个 y ( n ) y(n) y(n) 项 , A A A 向量 就有几个元素 ;
线性常系数差分方程 :
y ( n ) = 1.5 x ( n ) + 0.7 y ( n − 1 ) y(n) = 1.5x(n) + 0.7y(n-1) y(n)=1.5x(n)+0.7y(n−1)
将 0.7 y ( n − 1 ) 0.7y(n-1) 0.7y(n−1) 移到左边 , 得到 :
y ( n ) − 0.7 y ( n − 1 ) = 1.5 x ( n ) y(n) - 0.7y(n-1) = 1.5x(n) y(n)−0.7y(n−1)=1.5x(n)
这里有 2 2 2 个 y ( n ) y(n) y(n) 项 , A A A 向量的元素有两个 , 1 , − 0.7 1 , -0.7 1,−0.7 ;
A
= [
1,
-
0.7];
- 1.
3、输入序列
输入序列 :
x ( n ) = δ ( n ) x(n) = \delta (n) x(n)=δ(n)
输入序列 的元素个数 , 等于 输出序列 的元素个数 ;
n = 0 n = 0 n=0 时 , x ( n ) = 1 x(n) = 1 x(n)=1 , 然后再次生成 30 30 30 个 0 0 0 元素 , 放到 输入序列 中 ;
输入序列为 { 1 , 0 , 0 , ⋯ , 0 ⏟ 30 个 0 } \{ 1, \underbrace {0 , 0 , \cdots , 0}_{30 个 0} \} {1,30个0 0,0,⋯,0} , 共 31 31 31 个元素 ;
对应的 matlab 代码为
xn
=[
1,
zeros(
1,
30)];
- 1.
4、matlab 代码
matlab 代码 :
%
边
界
条
件
y(
-
1)
=
1 ,
这
里
设
置
ys
=
1
ys
=
1;
%
输
入
序
列
为
单
位
脉
冲
序
列
xn
=[
1,
zeros(
1,
30)];
%
线
性
常
系
数
差
分
方
程
中
的
x(
n)
项
系
数
B
=
1.5;
%
线
性
常
系
数
差
分
方
程
中
的
y(
n)
项
系
数
A
=[
1,
-
0.7];
%
等
效
初
始
条
件
的
输
入
序
列
xi
xi
=
filtic(
B,
A,
ys);
%
输
出
序
列
yn
=
filter(
B,
A,
xn,
xi);
%
建
立
幕
布
figure;
%
绘
制
"输出序列"
图
像 ,
点
用
上
三
角
表
示
plot(
yn,
'^');
%
打
开
网
格
grid
on;
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
绘图效果 :


版权声明
本文为[韩曙亮_]所创,转载请带上原文链接,感谢
https://blog.51cto.com/u_14202100/5237060
边栏推荐
- 2022年4月中国数据库排行榜:春风拂面春意暖,分数回升四月天
- Eight common probability distribution formulas and visualization
- 2022年危险化学品经营单位安全管理人员操作证考试题库模拟考试平台操作
- Qfileinfo file and folder operations
- 无线网络协议名词
- SSM高校实验室安全培训系统设计与实现.docx
- Simulated Login of selenium's slider verification code (pig Bajie website)
- redis-击穿、穿透、雪崩
- Revit二次开发——创建标高(第八期)
- Go语言 文件操作
猜你喜欢
![[source code analysis] encoding in style: a stylegan encoder for image to image translation](/img/2a/4d219785548b063d8ef5b736cdbb5f.png)
[source code analysis] encoding in style: a stylegan encoder for image to image translation

万字干货!帮你深度掌握设计中的「光影」知识点

一个人怎么拍自媒体视频,三农领域的运营技巧

2021-08-10

Meichuang technology was invited to carry out data security training for Haidian District academy of Educational Sciences

In depth analysis of focal loss loss function

What are the problems in the digital transformation of manufacturing industry

CPT 102_LEC 10

Mysql database operation statement exercise

Event Analysis | sharing the runner up scheme of table tennis timing action positioning competition
随机推荐
Revit二次开发——创建和切换标记(第十六期)
Algorithem_Populating Next Right Pointers in Each Node
Elements of network
This is a small case of secondary development of phase I Revit (automatic layout of supports and hangers)
3、 Label preparation
S TYLE N E RF: A S TYLE - BASED 3D-A WARE G ENERA - TOR FOR H IGH - RESOLUTION I MAGE S YNTHESIS
36 day assault Tencent finally took the offer! Redis, high concurrency
Q: How to change the number of appendix in the paper with the text.
OJ每日一练——分段函数
How to use mind map and flowchart for free (draw.io vs code integration)
L2-013 红色警报 (25 分)
Revit secondary development - creating floors (phase 12)
Event Analysis | sharing the runner up scheme of table tennis timing action positioning competition
Revit二次开发——接触式过滤(第十七期)
Filter and listener listeners
Jiaozuo Third People's Hospital joined hands with meichuang to open a new situation of data security construction
How a person makes self media videos, and the operation skills in the field of agriculture, rural areas and farmers
CPT 102_LEC 10
初始响应工具包
GSMA announced: 2022 MWC Shanghai postponed