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

11 ビュー (過去 30 日間)
Rajendra Kumar
Rajendra Kumar 2019 年 10 月 21 日
編集済み: Yuan Li 2019 年 10 月 21 日
MATLAB program to generate rect function ?( ?/6 ) using the sign function.

回答 (1 件)

Yuan Li
Yuan Li 2019 年 10 月 21 日
編集済み: Yuan Li 2019 年 10 月 21 日
t = 0:0.1:100;
a = sign(sin(pi.*t./6));
figure,plot(t,a);
ylim([-1.5 1.5]);

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by