Hi guys, look time lurker first time poster. Im simulating a simple multimode laser to analyse its output as a function of the number of modes. Have the code for output P which i think is correct but i now need to do analyse the P spectrum in the Fourier domain. I know my base should be p = abs(fft(f)) but im struggling to code it right! any help appreciate guys!