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

    function gui_view_attractor
% Draw Attractor
% last modified 29.02.04

global ATTRACTOR GSD_GLOBALS
f=[];
switch length(ATTRACTOR.data(1,:))
    case 1
        f=figure('color',[1 1 1],'numbertitle','off','name','View Attractor');
        plot(ATTRACTOR.time,ATTRACTOR.data)
    case 2
        f=figure('color',[1 1 1],'numbertitle','off','name','View Attractor');
        plot(ATTRACTOR.data(:,1),ATTRACTOR.data(:,2)),grid on
        set(xlabel(ATTRACTOR.name{1}),'interpreter','none');
        set(ylabel(ATTRACTOR.name{2}),'interpreter','none');
    case 3
        f=figure('color',[1 1 1],'numbertitle','off','name','View Attractor');
        plot3(ATTRACTOR.data(:,1),ATTRACTOR.data(:,2),ATTRACTOR.data(:,3)),grid on
        set(xlabel(ATTRACTOR.name{1}),'interpreter','none');
        set(ylabel(ATTRACTOR.name{2}),'interpreter','none');
        set(zlabel(ATTRACTOR.name{3}),'interpreter','none');
    otherwise
        warndlg('Visualizing more than 3D attractor is not possible.','');
end
GSD_GLOBALS.fig_handles=[GSD_GLOBALS.fig_handles f];