Complete the code to route the input signal to output1.
output1 = [1];The variable inputSignal holds the input data that should be routed to output1.
Complete the code to route the input signal to output2 after applying a gain of 2.
output2 = 2 * [1];
The input signal inputSignal is multiplied by 2 to apply gain before routing to output2.
Fix the error in routing the signal to output3 with an offset of 5.
output3 = [1] + 5;
The input signal inputSignal should be used before adding the offset.
Fill both blanks to route inputSignal to output4 with gain 3 and offset 1.
output4 = [1] * 3 + [2];
The input signal is multiplied by 3 and then 1 is added as offset.
Fill all three blanks to route inputSignal to output5 with gain 4, offset 2, and then subtract 3.
output5 = ([1] * [2] + [3]) - 3;
The input signal is multiplied by 4, then 2 is added, and finally 3 is subtracted.
