odd transmitter number from the signal

2 次查看(过去 30 天)
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

采纳的回答

Walter Roberson
Walter Roberson 2019-1-19
x(~mod(x,2)) = 0;

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by