problem to transform a signal with fft
1 view (last 30 days)
Show older comments
i have the signal
h(t)=sinc((10^3)*t)
and i want to transform it to fourier with fft. Can you tell me the right way because it confuses me?
0 Comments
Accepted Answer
Walter Roberson
on 16 Jan 2016
start_time = 0;
end_time = 20; %for example
t = linspace(start_time, end_time, 501); %create time vector
h = sinc(10^3*t);
hf = fft(h);
Now hf is the transformed value. It will have complex coefficients.
2 Comments
Walter Roberson
on 17 Jan 2016
H is going to be complex; if you plot it that way you will get a complex plot. You should probably plot(abs(H))
More Answers (0)
See Also
Categories
Find more on Fourier Analysis and Filtering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!