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

Answers (1)

t = 0:0.1:100;
a = sign(sin(pi.*t./6));
figure,plot(t,a);
ylim([-1.5 1.5]);

Categories

Find more on Simscape in Help Center and File Exchange

Tags

Asked:

on 21 Oct 2019

Edited:

on 21 Oct 2019

Community Treasure Hunt

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

Start Hunting!