how to plot triangular waveform?

Answers (3)

Vinay
Vinay on 28 Nov 2023
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
Star Strider on 6 May 2020
See the documentation for the pulstran function.

Asked:

on 6 May 2020

Answered:

on 28 Nov 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!