フィルターのクリア

How to save spectrogram?

14 ビュー (過去 30 日間)
Sania Gul
Sania Gul 2022 年 8 月 21 日
コメント済み: Rik 2022 年 8 月 22 日
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 件のコメント
Sania Gul
Sania Gul 2022 年 8 月 21 日
編集済み: Sania Gul 2022 年 8 月 21 日
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 2022 年 8 月 21 日
I have also tried this, but same results.
https://www.mathworks.com/matlabcentral/answers/418111-how-to-save-spectrogram-of-signal-as-image

サインインしてコメントする。

採用された回答

Rik
Rik 2022 年 8 月 21 日
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 件のコメント
Sania Gul
Sania Gul 2022 年 8 月 22 日
Its done. So So sO many thanks. Infinite thanks. OOOOF I m in the air.
Rik
Rik 2022 年 8 月 22 日
You're welcome, glad you were able to help yourself ;)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTime-Frequency Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by