Block: Invert
Inverts a signal. For example, if we have a signal with 8 samples like this one:
the block will output a new signal with the folowing samples:
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:
