MATLAB: Odd transmitter number from the signal

complex numberdigital signal processingdspevenfftifftMATLABMATLAB and Simulink Student Suitematlab coderoddrandom number generator

if
x=[1 -5 4 -6 7 -3 -7 5 6 3 7 8 -4 -1 ]
I want pass the odd number of this signal and set the even number to zero

Best Answer

x(~mod(x,2)) = 0;