MATLAB使用手记(三):高斯脉冲及其高阶导

高斯脉冲

单周期高斯脉冲公式一般如下:

g(t)=12πσet22σ2

matlab代码

sigma = 1;
N=100;               
x=linspace(-4,4,N);
syms t;

gp(t) = 1/(sqrt(2*pi)*sigma)*exp(-power(t,2)/(2*power(sigma,2))); %高斯脉冲

subplot(1,5,1);
plot(x,gp(x));
title('高斯脉冲') ;
grid on;

subplot(1,5,2);
y=diff(gp,t,1); %高斯脉冲一阶导
plot(x,y(x));
title('1 order');
grid on;

subplot(1,5,3);
y=diff(gp,t,2); %高斯脉冲二阶导
plot(x,y(x));
title('2 order');
grid on;

subplot(1,5,4);
y=diff(gp,t,3); %高斯脉冲三阶导
plot(x,y(x));
title('3 order');
grid on;

subplot(1,5,5);
y=diff(gp,t,4); %%高斯脉冲四阶导
plot(x,y(x));
title('4 order');
grid on;

结果

posted on   不回本不改名  阅读(1721)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 使用C#创建一个MCP客户端
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现

导航

< 2025年3月 >
23 24 25 26 27 28 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 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示