Need help with triangular wave

13 vues (au cours des 30 derniers jours)
Alina-Cristina CIOCAN
Alina-Cristina CIOCAN le 15 Oct 2017
Modifié(e) : KSSV le 16 Oct 2017
figure(1)
t=-5:0.5:5;
xcos=cos(pi*2*t);
xpsqw=xcos>0;
plot(t,xpsqw);
xlabel('Timp(s)');
ylabel('Amplitudine')
title('Graficul functiei u(t)')
ylim([-3.5 4.5]);
This is my code, but I do not know how to modify it to look like this

Réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by