当前位置:网站首页>信号与系统【x(t)*h(t)=y(t) 求h(t)】附matlab代码
信号与系统【x(t)*h(t)=y(t) 求h(t)】附matlab代码
2022-08-08 19:09:00 【Bwy_1004】
问题描述
根据傅里叶变换性质可得:
编程:
1、求h(t)在t=[-10,10]的近似图像
2、将得到的h(t)与x(t)卷积看看y(t)的样子
代码运行
T0 = 50;
intervalT = 0.001;
t = 0:intervalT:T0;
W0 = 20;
intervalW = 0.001;
w = 0:intervalW:W0;
functionW = zeros(1,length(w));
for i = 1:length(w)
if sin(w(i))>1e-6 %零值判断
functionW(i) = sin(0.5*w(i))^2/(w(i).*sin(w(i)));
else
functionW(i) = 0.25; %趋于零的点取极限0.25
end;
end;
%求h
h = zeros(1,length(t));
for i = 1:length(t)
for j=1:length(functionW)
h(i) = h(i)+functionW(j)*cos(w(j)*t(i))*intervalW;
end;
end;
h=2*h/pi;
%由于h(t)是偶函数 因此将图像翻转到负半轴
t = [-t(end:-1:2),t];
h = [h(end:-1:2),h];
%画h(t)
subplot(2,1,1);
plot(t,h);
%这里验证求出的h(t)和x(t)卷积后的y(t)是什么样子
newT = -10:intervalT:10;
y = zeros(1,length(newT));
for i = 1:length(newT)
time = newT(i);
for tao = -20:0.001:20
hindex = 1+round((tao-t(1))/intervalT);
if time-tao>0 && time-tao<2 && hindex>=1 && hindex<=length(h)
y(i) = y(i)+h(hindex)*0.001;
end;
end;
end;
%画y(t)
subplot(2,1,2);
plot(newT,y);
运行结果
边栏推荐
- uniapp parent component uses prop to pass asynchronous data to child components
- 使用dedecms自带采集功能的文字过滤与替换
- sql server 数据库怎么对插入的日期自动取月份数据?
- 数据库学习之表的操作
- 干货:从零设计高并发架构
- Excuse me, during the mongoshake synchronization process in the shake database, src_mongo hangs up, will the synchronization service not exit?
- 经验分享|低成本快节奏搭建企业知识管理系统的方法
- 如何在EasyDSS中使用ffmpeg实现点播视频的拼接与合成?
- Michael Bronstein 系列长文:迈向几何深度学习(之三)——第一个几何神经网络模型
- The history of cartoon rendering
猜你喜欢
FastDFS distributed file system
golang流程控制:if分支、switch分支和fallthrough switch穿透
Research on ORACLE subqueries that lead to inability to push predicates
WPF DataGrid 展示数据
聚名十周年线上庆典正式开启,发送祝福即有好礼相赠~
Advanced CAD practice (2)
Implementing Forward+ in Unity URP
软考中级网络工程师全面学习笔记第2版(5万字)+配套视频及课件
wps表格怎么复制粘贴后与原来格式一样?
数据库学习之表的操作
随机推荐
挖财学堂帮开通的证券账户是真的吗?安全吗
shell九九乘法口诀表
启牛商学院开户是安全的吗?开户靠谱吗?
Excuse me, during the mongoshake synchronization process in the shake database, src_mongo hangs up, will the synchronization service not exit?
The difference between Redis' memory elimination strategy and expired deletion strategy
Style Design Principles in Open Office XML Format
PyTorch入门:(五)模型的搭建
【761. Special binary sequence】
01. Preface
This error is reported when the shake database is started. Is there a problem with the configuration?
如何在Firewalld中为特定IP地址开放端口
无标题文章
Dry goods: design high concurrency architecture from scratch
商品期货需要多少钱开户。有资金门槛吗?期货开户在哪开安全?
What are the benefits of knowledge sharing for businesses?
大学生图书馆网页设计模板代码 DIV布局书店网页作业成品 学校书籍网页制作模板 学生简单书籍阅读网站设计成品
golang流程控制:if分支、switch分支和fallthrough switch穿透
How to add F4 Value Help trial version to the input parameters of the report in the ABAP report
分布式文件系统fastDFS
Codeforces Round #725 (Div. 3)