Need help with triangular wave

12 visualizaciones (últimos 30 días)
Alina-Cristina CIOCAN
Alina-Cristina CIOCAN el 15 de Oct. de 2017
Editada: KSSV el 16 de Oct. de 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

Respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by