当前位置:网站首页>脉冲函数、阶跃函数和斜坡函数及脉冲响应
脉冲函数、阶跃函数和斜坡函数及脉冲响应
2022-07-17 16:25:00 【jk_101】
目录
脉冲函数、阶跃函数和斜坡函数
MATLAB 是一种编程语言,它可以处理各种各样的不同信号。以下是一些生成单位脉冲、单位阶跃、单位斜坡和单位抛物线的语句。
t = (-1:0.01:1)';
impulse = t==0;
unitstep = t>=0;
ramp = t.*unitstep;
quad = t.^2.*unitstep;所有这些序列都是从t继承形状的列向量。对这些序列进行绘图。
plot(t,[impulse unitstep ramp quad])如图所示:

生成并绘制周期为 0.5、幅值为 0.81 的方波。
sqwave = 0.81*square(4*pi*t);
plot(t,sqwave)如图所示:

脉冲响应
数字滤波器的脉冲响应是由单位脉冲序列产生的输出,定义为:

可以通过多种方式生成脉冲序列;其中一种简单的方式是
imp = [1; zeros(49,1)];
具有 b=1 和 a=[1−0.9] 的简单滤波器的脉冲响应是
,它呈指数衰减。
b = 1;
a = [1 -0.9];
h = filter(b,a,imp);
stem(0:49,h)如图所示:

显示脉冲响应的一种简单方式是使用滤波器可视化工具 fvtool。
fvtool(b,a)如图所示:

点击工具栏上的脉冲响应按钮 [↑],从菜单中选择分析 > 脉冲响应,或键入以下代码以获得单极点系统的指数衰减。
fvtool(b,a,'Analysis','impulse')如图所示:

边栏推荐
猜你喜欢

C#从入门到精通之第二篇: C# 基础语法

Notes on the fifth day

SwiftUI 颜色教程大全之中创建自定义调色板

李宏毅《机器学习》|1. Introduction of this course(机器学习介绍)

C # from introduction to mastery Part 1: C # overview and introduction

Pytorch version: yolov4 integrating attention and mobilenet

getchar()

Familiar with nestjs (beginner)

Leetcode 150. 逆波兰表达式求值

C语言绘图示例-调色板
随机推荐
HICP first day notes
getchar()
ros(26):ros::Time::now(),ros::Duration,toSec(),toNSec();计算程序执行时间
Travail du quatrième jour
MyCat2搭建mysql主从分离
Overview of the application of air, space and sea Association
核芯基站_启动CPA文件报错‘No gateways configured’
对Rapidly-exploring Random Trees(RRT)路径规划方法的理解
WAV和PCM的关系和区别
HCIP (7)
String correlation function (II)
3.Golang字符串string类型
Ah Qu's thinking
Familiar with nestjs (beginner)
【Flutter】dart:一些不容忽视的特性
Core base station_ The error "no gateways configured" is reported when starting the CPA file
招生宣传-江南大学
数据库每日一题---第25天:银行账户概要 II
Will webgpu become the killer of webgl?
字符串相关函数(二)