Hi Aman,
As the frequency of signal is 100Hz(f) the sampling frequency:
- fs < 2f - under sampling
- fs = 2f - perfect sampling
- fs >2f - over sampling
To be able to sample signals with this sampling frequency and plot them in MATLAB you could use the following simple code:
t = 0:1/fs:1
y = sin(2*pi*100*t)
plot(t,y)
By changing fs according to your requirement you could plot under sampled, perfectly sampled and over sampled signals.
Hope it helps!
Best Answer