Greetings,
I have developed a MATLAB code aimed at extracting a time domain signal from the Power Spectral Density (PSD) of a random signal. I am seeking guidance to verify the correctness of this process, particularly in terms of the amplitudes of the resulting time domain signal. Furthermore, I have observed disparities in amplitude when comparing the PSD calculated from the generated time domain signal to the original PSD.
To assist in addressing this matter, I have attached both the MATLAB code and the PSD model for reference. Your insights and feedback would be greatly appreciated, and I thank you in advance for your time and expertise.