⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gui_en_dis.m

📁 主成分分析和偏最小二乘SquaresPrincipal成分分析( PCA )和偏最小二乘( PLS )
💻 M
字号:
function gui_en_dis;
% GUI_EN_DIS update enable/disable property for menu items in main Lab432
% figure
%
% last modified 27.08.07 

global GSD_GLOBALS

set(0,'showhiddenhandles','on');
h=findobj('tag','MainFig');
if isempty(h)
    return
end
h=guidata(h);

data_set=[h.ViewPhasePortrait h.ViewData h.Histogram h.AutocorrelationFunction h.MutualAverageInformation h.FFT...
        h.CreateDAModel h.CreateGRmodel h.SSA_SSA h.CreateAttractor h.CreateAttractorMD h.Spacing h.SelectTimeInterval...
        h.RenameData h.ExtractTime h.DeleteData h.FilterData h.Normalize ...
        h.SaveToFile h.SaveToWorkspace h.DataRecurrencePlot h.Hist2D h.RemoveTrend h.Statistics...
        h.TimeFrequencyDistribution];

if GSD_GLOBALS.en_dis.datapresent
    set(data_set,'enable','on');
else
    set(data_set,'enable','off');
end

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Attractor
attractor_set=[h.MaximalLyapunovExponent h.ViewAttractor];%h.RecurrencePlot

if GSD_GLOBALS.en_dis.attractorpresent
    set(attractor_set,'enable','on');
else
    set(attractor_set,'enable','off');
end
% if (~GSD_GLOBALS.en_dis.datapresent)&(~GSD_GLOBALS.en_dis.attractorpresent)
%     set(h.Attractor,'enable','off');
% else
%     set(h.Attractor,'enable','on');
% end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% end.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Global reconstruction
if GSD_GLOBALS.en_dis.gr_model
    set(h.DispResultGRmodel,'enable','on');
else
    set(h.DispResultGRmodel,'enable','off');
end
if (~GSD_GLOBALS.en_dis.datapresent)&(~GSD_GLOBALS.en_dis.gr_model)
    set(h.GlobalReconstruction,'enable','off');
else
    set(h.GlobalReconstruction,'enable','on');
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% end.
    

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Discriminant analysis
da_set=[h.DispResultDAModel h.FilterDACoeff h.DACoefficientsHistogram...
        h.ViewDACoefficients h.NormalizeDACoefficients];

if GSD_GLOBALS.en_dis.da_model
    set(da_set,'enable','on');
else
    set(da_set,'enable','off');
end
if (~GSD_GLOBALS.en_dis.datapresent)&(~GSD_GLOBALS.en_dis.da_model)
    set(h.DiscriminantAnalysis,'enable','off');
else
    set(h.DiscriminantAnalysis,'enable','on');
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% end.



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SSA
ssa_set=[h.SSA_ViewRightSingularVectors h.SSA_ViewLeftSingularVectors h.SSA_ViewPrincipalComponents...
        h.SSA_ViewElementaryVectors h.SSA_ViewWCorrelation h.SSA_ViewSingularSpectrum...
        h.SSA_Grouping h.SSA_ViewEigenVectorsScatterogram];
ssa_groups_set=[h.SSA_AddToData h.SSA_ViewGroupSubcomponents h.SSA_Forecasting];

if GSD_GLOBALS.en_dis.ssa
    set(ssa_set,'enable','on');
else
    set(ssa_set,'enable','off');
end
if GSD_GLOBALS.en_dis.ssa_groups
    set(ssa_groups_set,'enable','on');
else
    set(ssa_groups_set,'enable','off');
end

if (~GSD_GLOBALS.en_dis.datapresent)&(~GSD_GLOBALS.en_dis.ssa_groups)&(~GSD_GLOBALS.en_dis.ssa)
    set(h.SSA,'enable','off');
else
    set(h.SSA,'enable','on');
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% end.

    

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -