I want to calculate Cross spectral density (CSD) and mutual coherence function (MCF) of supercontinuum spectrum. By solving GNLSE, I have a (1by n) matrix of electric field at the output of the waveguide. I am not getting clear approach for implementing matlab programme to calculate the CSD and MCF parameter. Which matlab function should I use. Please help me.