How can I find fft of this function

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;

Tags

Asked:

on 20 Oct 2022

Answered:

on 20 Oct 2022

Community Treasure Hunt

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

Start Hunting!