how to save displayed fig

조회 수: 4 (최근 30일)
Haleema Ahsan
Haleema Ahsan 2020년 1월 21일
댓글: Jakob B. Nielsen 2020년 1월 21일
i am working on following code
Fs = 128;
fb = cwtfilterbank('SignalLength',1000,...
'SamplingFrequency',Fs,...
'VoicesPerOctave',12);
sig = data(1,1:1000);
[cfs,frq] = wt(fb,sig);
t = (0:999)/Fs;figure;pcolor(t,frq,abs(cfs))
set(gca,'yscale','log');shading interp;axis tight;
title('Scalogram');xlabel('Time (s)');ylabel('Frequency (Hz)')
now i want to save the figure which displays resulting in this code
can please anyone help me how to save it

답변 (1개)

neeraj
neeraj 2020년 1월 21일
figure(2)
savefig('signal.fig')

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by