Effacer les filtres
Effacer les filtres

Generate square wave starting from 0

7 vues (au cours des 30 derniers jours)
shariq khan
shariq khan le 10 Déc 2018
Commenté : Walter Roberson le 12 Déc 2018
I want to make square wave with function square which starts from 0 and not with amplitude

Réponse acceptée

Walter Roberson
Walter Roberson le 11 Déc 2018
[zeroes(1,M), ones(1,N)] repeated as necessary .
  2 commentaires
shariq khan
shariq khan le 11 Déc 2018
using function square?
Walter Roberson
Walter Roberson le 12 Déc 2018
t = 0:.0001:.0625;
y = 1 - square(2*pi*30*t);
plot(t,y)

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by