Triangle wave starting at the origin
Afficher commentaires plus anciens
Hi, I want my triangle wave to start at the origin, how can I do that?
This is my code:
t = linspace(0,6.840,10000);
x = 19.6.*sawtooth(t,0.5);
plot(t,x)
grid on
xticks([0 1 2 3 4 5 6 6.840])
yticks([-19.6 -15:5:15 19.6])
Réponse acceptée
Plus de réponses (1)
t = linspace(0,6.840,10000);
x = 19.6.*(1 + sawtooth(t,0.5));
plot(t,x)
grid on
xticks([0 1 2 3 4 5 6 6.840])
yticks([-19.6 -15:5:15 19.6])
Catégories
En savoir plus sur Axis Labels dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


