make figure spectrogram as length as signal above it
Show older comments
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
Mann Baidi
on 3 Jun 2024
"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)?
Mathieu NOE
on 3 Jun 2024
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 :
Mathieu NOE
on 3 Jun 2024
Answers (0)
Categories
Find more on Subplots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!