ASML interview question

What is your preferred method for calculating PSD in MATLAB?