Block: Invert


Inverts a signal. For example, if we have a signal with 8 samples like this one:

2, 3, -4, 8, 7, 1, 2, -3

the block will output a new signal with the folowing samples:

-3, 2, 1, 7, 8, -4, 3, 2

This block has no inputs.

Example:

The following example shows an usage in C#.

var signal = new ImportFromTextBlock { Text = "2, 3, -4, 8, 7, 1, 2, -3" };
var block = new InvertBlock();
signal.ConnectTo(block);
signal.Execute();

Console.WriteLine(block.Output[0].ToString(0));
//Output: -3 2 1 7 8 -4 3 2

The above example generates the following set of inputs and outputs:


Last edited Jan 19, 2014 at 8:57 PM by walteram, version 1

Comments

No comments yet.