我用别人的程序跑自己的数据,出现一个问题:弹出的图形界面是空的,为什么会出现这样的情况呢?附上我的数据和所采用的小波分析程序。请大家帮我看看问题出在哪里。毕业论文急用,在线等解答!
相应的matlab代码是:
%% Load the data
% First we load the two time series into the matrices d1 and d2.
seriesname={'OIL' 'EX'};
d1=load('LOIL.txt');
d2=load('LEX.txt');
%% Continuous wavelet transform (CWT)
% The CWT expands the time series into time
% frequency space.
figure('color',[1 1 1])
tlim=[min(d1(1,1),d2(1,1)) max(d1(end,1),d2(end,1))];
subplot(2,1,1);
wt(d1);
title(seriesname{1});
set(gca,'xlim',tlim);
subplot(2,1,2)
wt(d2)
title(seriesname{2})
set(gca,'xlim',tlim)
%% Cross wavelet transform (XWT)
% The XWT finds regions in time frequency space where
% the time series show high common power.
figure('color',[1 1 1])
xwt(d1,d2)
title(['XWT: ' seriesname{1} '-' seriesname{2} ] )
%% Wavelet coherence (WTC)
% The WTC finds regions in time frequency space where the two
% time series co-vary (but does not necessarily have high power).
figure('color',[1 1 1])
wtc(d1,d2)
title(['WTC: ' seriesname{1} '-' seriesname{2} ] )