MATLAB Answers

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

2 views (last 30 days)
Rajendra Kumar
Rajendra Kumar on 21 Oct 2019
Edited: Yuan Li on 21 Oct 2019
MATLAB program to generate rect function ?( ?/6 ) using the sign function.

  0 Comments

Sign in to comment.

Answers (1)

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

  0 Comments

Sign in to comment.

Tags


Translated by