how to plot triangular waveform?
显示 更早的评论
can anyone help me to plot following triangular waveform?
回答(3 个)
Vinay
2023-11-28
1 个投票
T = 10*(1/50);
fs = 1000;
t = 0:1/fs:T-1/fs;
x = sawtooth(2*pi*50*t);
plot(t,x)
grid on
Star Strider
2020-5-6
0 个投票
类别
在 帮助中心 和 File Exchange 中查找有关 Waveform Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
