Make sure you have matplotlib library installed before running the code
1. Encoding
2. Decoding
Enter You Choice : 1
Enter The Signal : 01001000000000001010
Enter The First Sign (+,-): -
Signal after Encoding : [0, -1, 0, 0, 1, 0, 0, 0, 1, -1, 0, -1, 1, 0, 0, 0, -1, 0, 1, 0]
1. Encoding
2. Decoding
Enter Your Choice : 2
Enter The Signal : 0 -1 0 0 1 0 0 0 1 -1 0 -1 1 0 0 0 -1 0 1 0
The Signal after Decoding : [0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0]