[Matlab-5]Laplace变换

Matlab实现Laplace变换与信号处理
本文介绍了Laplace变换的数学原理及其在Matlab中的应用,包括Laplace变换、逆变换、与Fourier变换的关系,以及如何通过3D曲面图分析系统稳定性。同时,展示了如何利用Laplace变换求解微分方程,并给出了零状态响应的计算方法及实例。
部署运行你感兴趣的模型镜像

Laplace 变换(数学)

在这里插入图片描述

Laplace 变换和逆变换

在这里插入图片描述
在这里插入图片描述

Laplace 变换与Fourier变换的关系

在这里插入图片描述

极点(pole)与零点(zero)

在这里插入图片描述
在这里插入图片描述
由图上可以看出是否stable

//First order poles on real axis (a=0,w=1)
//H1(s)=1/(s+0.1)   H2(s)=1/s   H3(s)=1/(s-0.1)
clear;clf;
b = 1;
t = 0:0.001:60;

a = [1,0.1];
sys1 = tf(b,a);
subplot(3,2,2);plot(t,impluse(sys1,t),'g');xlabel('t');ylabel('h1(t)');

a = [1,0];
sys1 = tf(b,a);
subplot(3,2,4);plot(t,impluse(sys2,t),'r');xlabel('t');ylabel('h2(t)');

a = [1,-0.1];
sys3 = tf(b,a);
subplot(3,2,6);plot(t,impluse(sys3,t),'b');xlabel('t');ylabel('h3(t)');

subplot(3,2,[1 3 5]);
pzplot(sys1,'g');hold on;
pzplot(sys2,'r');
pzplot(sys3,'b');hold off;

作3D曲面图(surface plot)

标题会用到的函数

在这里插入图片描述

颜色挑选

在这里插入图片描述

栗子

在这里插入图片描述
在这里插入图片描述

给定微分方程求Laplace变换

在这里插入图片描述

零状态响应

拿上面的Y(s)来举例,就是只保留后面的项,分母和左边式子系数相对应。否则就是有初始态的,和上面一样

一些栗子

在这里插入图片描述

clear;
syms s;
F = (s^3+5*s^2+9*s+7)/(s^2+3*s+2);
ft = ilaplace(F)

在这里插入图片描述

clear;clf;
syms s t;
% L(RHS) = 6
%f = diff(heaviside(t));
F = 6/(s^2 + 3*s + 2);
ft = ilaplace(F);
fplot(t,ft);hold on;
xlabel('t');
title('response and incentive');
xlim([0,10]);
ylim([-1,2]);
fs = heaviside(t);
fplot(t,fs);

在这里插入图片描述
在这里插入图片描述

clear;clf;
x = -6:0.48:6;y=x;
[sigma,omega] = meshgrid(x,y);
s = sigma +1j*omega;
Fs = s./(s.*s + 1);
Fsabs = abs(Fs);
subplot(2,2,1);
surf(sigma,omega,Fsabs);
axis([-6,6,-6,6,0,4.5]);
title('Suface Plot of Laplace Transform');
colormap(hsv);
rotate3d on;
subplot(2,2,2);
Fphase = angle(Fs);
surf(sigma,omega,Fphase);
%axis([-6,6,-6,6,0,4.5]);
title('Suface Plot of Laplace Transform');
colormap(hsv);
rotate3d on;
subplot(2,2,3);
Freal =real(Fs);
surf(sigma,omega,Freal);
%axis([-6,6,-6,6,0,4.5]);
title('Suface Plot of Real part');
colormap(hsv);
rotate3d on;
subplot(2,2,4);
Fim = imag(Fs);
surf(sigma,omega,Fim);

title('Suface Plot of Immaginary part');
colormap(hsv);
rotate3d on;```
![在这里插入图片描述](https://img-blog.csdnimg.cn/20210528100044840.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0NwbHVzX3J1bGVy,size_16,color_FFFFFF,t_70)

您可能感兴趣的与本文相关的镜像

Stable-Diffusion-3.5

Stable-Diffusion-3.5

图片生成
Stable-Diffusion

Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值