odd transmitter number from the signal

2 views (last 30 days)
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

Accepted Answer

Walter Roberson
Walter Roberson on 19 Jan 2019
x(~mod(x,2)) = 0;

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!