Simulink bit operations

4 views (last 30 days)
Raldi
Raldi on 16 Dec 2011
Hi all, I wanted to ask if from a number of bits that are represented with 1 and 0 is possible to invert the ones to -1 each lets say two bits? Thanks in advance.
  2 Comments
Raldi
Raldi on 13 Jan 2012
basicaly i was trying to create an ami nrz line code, i think flip flops is the only way to do that. I havent finish it yet though.

Sign in to comment.

Answers (1)

Paulo Silva
Paulo Silva on 16 Dec 2011
[1 0]------>Gain(-1)----->[-1 0]
Use the Gain block and define that gain as -1
  7 Comments
Raldi
Raldi on 13 Jan 2012
I was thinking more of using a flip flop as it has memmory, The general idea was to create a simple ami-nrz line code.

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!