make figure spectrogram as length as signal above it

I would like to put spectogram result below the signal figure. I use specgram (in second row) and spectogram result in last row, but i get difficulties to make the lenght of spectogram, figure as length as signal figure. Can somebody help me?

3 Comments

"i get difficulties to make the lenght of spectogram, figure as length as signal figure."
Do you mean the dimensions of the figure or the values of the x-axis (time values)?
yes , having the colorbar in one only subplot will destroy the x axis alignment
there are certainly many answers to the same question, one "old fashioned" way was described here already long time ago :

Sign in to comment.

Answers (0)

Asked:

on 1 Jun 2024

Commented:

on 3 Jun 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!