How to plot magnitude of DFT in Matlab?
To plot the magnitude and phase in degrees, type the following commands: f = (0:length(y)-1)*100/length(y); % Frequency vector subplot(2,1,1) plot(f,m) title('Magnitude') ax = gca; ax. XTick = [15 40 60 85]; subplot(2,1,2) plot(f,p*180/pi) title('Phase') ax = gca; ax.
What is an N point DFT?
Definition. An N-point DFT is expressed as the multiplication , where is the original input signal, is the N-by-N square DFT matrix, and. is the DFT of the signal.