# Plot the regular function and Fourier transform

1 Ansicht (letzte 30 Tage)
Tu Nguyen am 28 Feb. 2022
syms x a b L
n = [-10:0.01:10];
f = inline('rectangularPulse(a,b,x)','x')
f_FT = (1/L)*fourier(f);
Hi guys, I am confused about this assignment, I choose the rect function and transfer to its Fourier transform, but I am confused about the variable, my professor want the plot x over y, not the time. So, in this case, I change x to n/L and plot on interval (-10, 10) correct?
##### 0 Kommentare-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

### Akzeptierte Antwort

Benjamin Thompson am 28 Feb. 2022
y for the first plot would be the rectangular pulse value. x would be the range -10 to 10. For the plot of the fourier transform, the y would be the magnitude of the fourier transform output, the x values may be arbitrary. They want to show the important details so you may need to experiment with different frequency ranges for that plot to see what makes sense.
##### 0 Kommentare-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

### Kategorien

Mehr zu Fourier Analysis and Filtering finden Sie in Help Center und File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by