matlab产生三角波——tripuls()

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');

在这里插入图片描述

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值