Clear Filters
Clear Filters

How to write matlab code that result odd component zero?

1 view (last 30 days)
I was given some random in time i get fourier transform to convert it in the frquency domain.what matlab code can be written so that when i plot it in the frequency domain I can make odd component zero?My sequence in frequency domain should give only even component.

Answers (1)

Nora Khaled
Nora Khaled on 25 Nov 2020
%vector of random integers
%find odd number and replace by zero
  1 Comment
Dipsikha Roy
Dipsikha Roy on 25 Nov 2020
I have sequence in tym domain so fft must be done to convert the signal in frequency domain.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!