tripuls函数:

产生一个三角形的单脉冲信号。有三个参数,三种调用形式:

调用形式 参数含义
y=tripuls(T) T是一个数组,表示信号时间。
y=tripuls(T, w) w是三角波的宽度。
y=tripuls(T, w, s) s是三角波是斜率(-1<s<1)。
figure;
fs = 10e3;
t = -0.1:1/fs:0.1;
subplot(2,2,1)
plot(t,tripuls(t));         % 图1
title('图1');
subplot(2,2,2)
w=0.04;
plot(t,tripuls(t,w));       % 图2
title('图2');
subplot(2,2,3)
plot(t,tripuls(t,w,0.8));   % 图3
title('图3');
subplot(2,2,4)
plot(t,tripuls(t,w,-0.6));  % 图4
title('图4');

在这里插入图片描述

Logo

「智能机器人开发者大赛」官方平台,致力于为开发者和参赛选手提供赛事技术指导、行业标准解读及团队实战案例解析;聚焦智能机器人开发全栈技术闭环,助力开发者攻克技术瓶颈,促进软硬件集成、场景应用及商业化落地的深度研讨。 加入智能机器人开发者社区iRobot Developer,与全球极客并肩突破技术边界,定义机器人开发的未来范式!

更多推荐