1D signal to 2D spectrogram I struggling at transforming a 1D breathing signal into 2D spectrograms,
power spectral density as a function of time and frequency.
Does anyone have an idea about that?
If you're working in the MATLAB environment, the STFT of a 1D signal can be obtained by using the Spectrogram() command. Refer here

And as for PSD, you can use the FFT to obtain the same. Refer here