How to change value of a signal's range in Matlab
问题 Let's say that I have a signal in Matlab like this x = cos(2*pi*10*t) + cos(2*pi*20*t) + cos(2*pi*50*t); And I want to change the values between 20 and 30 hz into 0. How can I do that? I mean, those values generated from the x formula, I want to change them a little bit. 回答1: You can do it by performing FFT over x and setting to zero those values that are between 20 and 30 Hz then applying the FFT inverse on the previous values and you should get the signal without those frequencies. However,