flip negative value as shown bellow

조회 수: 3 (최근 30일)
abdullah qasim
abdullah qasim 2019년 9월 19일
답변: Gokul 2019년 9월 19일
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
madhan ravi
madhan ravi 2019년 9월 19일
Post the attempted code.
darova
darova 2019년 9월 19일
please

댓글을 달려면 로그인하십시오.

채택된 답변

Gokul
Gokul 2019년 9월 19일
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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Transmitters and Receivers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by