I'm trying to compute a power spectral density (PSD) using the 'fft' function and I would like to specify the number of DFT points so that the signal is padded with zeros. There are instructions on how to find the PSD here: https://www.mathworks.com/help/signal/ug/power-spectral-density-estimates-using-fft.html, but I'm not sure how to modify them to allow me to pad the signal.
MATLAB: How to use ‘fft’ to calculate the PSD of a signal that is padded with zeros
dftfftMATLABpadpointspsdSignal Processing Toolbox
Best Answer