how to save spectrogram of signal as image ?

27 views (last 30 days)
how to save spectrogram of signal as pixel or image ?
  1 Comment
RaB
RaB on 4 Apr 2021
how do you save the image without title, labels, ticks, etc.? ... just the image

Sign in to comment.

Accepted Answer

KALYAN ACHARJYA
KALYAN ACHARJYA on 8 Sep 2018
Edited: KALYAN ACHARJYA on 8 Sep 2018
% You can do it in multiples ways, for example, check the following sample code
N=1024;
n=0:N-1;
w0=2*pi/5;
x=sin(w0*n)+10*sin(2*w0*n);
s=spectrogram(x);
spectrogram(x,'yaxis');
saveas(gcf,'filename.png'); %Use to display save as image

More Answers (0)

Categories

Find more on Time-Frequency Analysis 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!