Pergunta de entrevista da empresa ASML

What is your preferred method for calculating PSD in MATLAB?