How can I find fft of this function

1 view (last 30 days)
Niloufar
Niloufar on 20 Oct 2022
Answered: Fabio Freschi on 20 Oct 2022
I want to find fft of this function.How can I do that?
T = 2*pi; t = linespace(-T,T,100); x1 = zeros(1,length(t)); x1(abs(t)<T/4) = 1;

Answers (1)

Fabio Freschi
Fabio Freschi on 20 Oct 2022
try with fft

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by