main.m623 chars26 lines
This code first generates a rectified sine wave signal with a frequency of 50 Hz. Then it plots the rectified sine wave in the time domain and computes and plots its spectrum using the Fast Fourier Transform (FFT).
gistlibby LogSnag