how flip the signal as below?

4 ビュー (過去 30 日間)
abdullah qasim
abdullah qasim 2019 年 10 月 2 日
回答済み: Walter Roberson 2019 年 10 月 2 日
X=[1 2 -5 4 -7 8 9 -4 -5 6 1 -2 3 -6 ]
I want to program the following using "if"
If the value of Xp is higher than "0", pass the signal
But if the value of Xp is less than "0", make it equal to "0"
If Xn is less than "0", pass the value
If Xn is higher than "0", make it equal to "0"
After finishing the program
flip the negative signal
Pass the flip negative signal successively after the positive signal
  2 件のコメント
Shubham Gupta
Shubham Gupta 2019 年 10 月 2 日
" If the value of Xp is higher than "0", pass the signal ......
If Xn is less than "0", pass the value.... "
Above 2 statements are exactly same if I assume
Xp = X;
Xn = -X;
If these statements are same then, why do you need to "filp" the signal ?
abdullah qasim
abdullah qasim 2019 年 10 月 2 日
program by using " if ......else "

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2019 年 10 月 2 日
fliplr()

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by