How to make rectangular train?
3 ビュー (過去 30 日間)
古いコメントを表示

I want to make a signal like above.
I made a signal when T=2, but I can't draw a graph when T=4,8,16.
Can you help me?
T=2
<code>
clear;
close all;
clc;
t=-5:0.001:5;
T=2;
y=square(pi*(t+0.5))/2+0.5;
plot(t,y)
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!