Borrar filtros
Borrar filtros

How to save spectrogram?

14 visualizaciones (últimos 30 días)
Sania Gul
Sania Gul el 21 de Ag. de 2022
Comentada: Rik el 22 de Ag. de 2022
Kindly tell me, how I can save the spectrogram without any labels, ticks or surrounding frame area as a JPEG image in my hard drive?
  3 comentarios
Sania Gul
Sania Gul el 21 de Ag. de 2022
Editada: Sania Gul el 21 de Ag. de 2022
Method # 2 of
and
saveas(gcf,'filename.png')
Although the above link was for part of spectrogram, but I applied it for the full spectrogram.
But it is saving the x and yaxis along with numbers over them and the frame itself.
Sania Gul
Sania Gul el 21 de Ag. de 2022
I have also tried this, but same results.
https://www.mathworks.com/matlabcentral/answers/418111-how-to-save-spectrogram-of-signal-as-image

Iniciar sesión para comentar.

Respuesta aceptada

Rik
Rik el 21 de Ag. de 2022
You can do the work yourself (as the axes contains a Position property from which you can determine what you need to crop), but the export_fig function from Yair Altman is probably what you need.
It should be able to export a screenshot of only the axes itself.
Otherwise, you could try digging in the properties to see if there is a CData property you could export directly (which would be the raw underlying data).
  6 comentarios
Sania Gul
Sania Gul el 22 de Ag. de 2022
Its done. So So sO many thanks. Infinite thanks. OOOOF I m in the air.
Rik
Rik el 22 de Ag. de 2022
You're welcome, glad you were able to help yourself ;)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Time-Frequency Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by