www.gusucode.com > Matlab动力系统和时间序列分析工具箱 > Matlab动力系统和时间序列分析工具箱/lab432/gui/gui_remove_trend.m

    function gui_remove_trend;
% REMOVE_TREND remove linear trend 

%
% last modified 07.12.04

global TS

str=TS.name;
[selection,ok] = listdlg('PromptString','Select data:',...
                'SelectionMode','multiple','ListString',str);
if ok 
        TS.data(:,selection)=detrend(TS.data(:,selection));
end