MATLAB Answers

0

how to save spectrogram of signal as image ?

how to save spectrogram of signal as pixel or image ?

  0 Comments

Sign in to comment.

1 Answer

Answer by KALYAN ACHARJYA on 8 Sep 2018
Edited by KALYAN ACHARJYA on 8 Sep 2018
 Accepted Answer

% 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

  1 Comment

save at current working directory folder

Sign in to comment.