Skip to content

Commit

Permalink
Update docs/src/examples.md
Browse files Browse the repository at this point in the history
  • Loading branch information
heitorPB authored May 18, 2024
1 parent 4dceb97 commit 8a787b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/src/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ t = t0:Ts:tmax

signal = sin.(2π * 60 * t) + .5 * sin.(2π * 120 * t)

# Fourier Transform of it
# The `fft` function calculates the (discrete) Fourier transform of its input.
# The first half of the returned array contains the positive frequencies, while
# the second half contains the negative ones. For visualization purposes, we
# rearrange the array to have the zero-frequency at the center.

F = fftshift(fft(signal))
freqs = fftshift(fftfreq(length(t), fs))

Expand Down

0 comments on commit 8a787b2

Please sign in to comment.