フィルターのクリア

y1=(t1==0)

5 ビュー (過去 30 日間)
Usha Us
Usha Us 2020 年 8 月 11 日
回答済み: hosein Javan 2020 年 8 月 11 日
the meaning for this command to generate impulse how it will produce 1 at t1=0

回答 (1 件)

hosein Javan
hosein Javan 2020 年 8 月 11 日
if "t1" is a vector like this:
t1 = [-2 -1 0 +1 +2]
then "t1==0" is a vector of same size which replaces any non-zero value by zero and any zero value by one:
t1 ==0
[0 0 1 0 0]

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by