using Plots , FFTW , PlutoUI
This notebook explores the effect of sampling frequency on the DFT spectrum. The radio buttons below allow you to set the frequency for the basic sinusoid.
md"""This notebook explores the effect of sampling frequency on the DFT spectrum.
The radio buttons below allow you to set the frequency for the basic sinusoid."""
Set base frequency
md"""##### Set base frequency"""
Parameter set up
The plot below shows the original sinusoid at the frequency shown above along with a sampled version of it. The sampling rate can be set with the slider below
md""" The plot below shows the original sinusoid at the frequency shown above along with a sampled version of it. The sampling rate can be set with the slider below"""
Set the sampling frequency using the slider below
md""" Set the sampling frequency using the slider below"""
The plot below shows the magnitude spectrum of the signal. As you can see increasing the sampling frequency results in a sharper magnitude spectrum and cleaner peaks.
md""" The plot below shows the magnitude spectrum of the signal. As you can see increasing the sampling frequency results in a sharper magnitude spectrum and cleaner peaks."""