Effacer les filtres
Effacer les filtres

How to generate a rectangular signal or wave of ?( ?/6 ) using the sign function.

19 vues (au cours des 30 derniers jours)
Rajendra Kumar
Rajendra Kumar le 21 Oct 2019
Modifié(e) : Yuan Li le 21 Oct 2019
MATLAB program to generate rect function ?( ?/6 ) using the sign function.

Réponses (1)

Yuan Li
Yuan Li le 21 Oct 2019
Modifié(e) : Yuan Li le 21 Oct 2019
t = 0:0.1:100;
a = sign(sin(pi.*t./6));
figure,plot(t,a);
ylim([-1.5 1.5]);

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by