flip negative value as shown bellow

3 Ansichten (letzte 30 Tage)
abdullah qasim
abdullah qasim am 19 Sep. 2019
Beantwortet: Gokul am 19 Sep. 2019
if
x=[1 2 -5 7 -9 4 -6 7 -6 8 -5 2 -1 5 -6 -8 -9 7 4 -1 ]
x + = if x(k) ≥ 0
0 otherwise
x-= if x(k) < 0
0 otherwise
. The positive signal x +(k) is transmitted in the first subframe .
the second subframe is used to carry the flipped (inverted polarity) signal −x −(k)
then send full signal
  4 Kommentare
madhan ravi
madhan ravi am 19 Sep. 2019
Post the attempted code.
darova
darova am 19 Sep. 2019
please

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Gokul
Gokul am 19 Sep. 2019
You question is not very clear to me, but for the first part of it, I belive you want to this:
x=[1 2 -5 7 -9 4 -6 7 -6 8 -5 2 -1 5 -6 -8 -9 7 4 -1];
y=x+(x>=0)*2-1

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by