フィルターのクリア

unit step function to mimic signal

2 ビュー (過去 30 日間)
Weston Ayers
Weston Ayers 2019 年 3 月 31 日
回答済み: Agnish Dutta 2019 年 4 月 8 日
Im having issues creating my unit step to look like the signal i have it just needs a small sshift that i do not know how to do.
x = square(t-1);
y = -2*square(t-1);
unitstep = zeros(size(t));
unitstep(t>=1)=-1;

回答 (1 件)

Agnish Dutta
Agnish Dutta 2019 年 4 月 8 日
From what I understand, you want the falling edge of your unit step signal to coincide with that of the square wave.
If that is the case then the following fix should work:
unitstep(t>=3)=-1 % Instead of "unitstep(t>=1)=-1;".

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by