Just type
doc pwelch
and everything you need is there. If I remember correctly a power spectrum discards the phase information so it is not irreversible.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!