Here is an example MATLAB script for FFT with windowing Here is a document on how to combine data points each with their own standard deviation. Index of refraction of various materials.