colplotg.m

来自「用matlab实现利用统计混沌方法解决非线性系统时间序列预测的问题」· M 代码 · 共 59 行

M
59
字号
function colplotg(varargin);

% number of matrix to plot
nbr = nargin;
if nbr==0, return; end;

% number of cols
col = size(varargin{1},2);

% check for same number of cols
if nbr>=2,
        for n = 1:nbr,
                if size(varargin{n})~=col,
                        error('#cols ><');
                end;
        end;
end;

% figure for uicontrols
f1 = figure(...
        'Position',[50,50,250,250],...
        'Resize','off',
        );

s1 = uicontrol(...
        'Position',[],...
        'Style','Slider',...
        'Min',[1],...
        'Max',[col],...
        'Value',[1],...
        );

s2 = uicontrol(...
        'Position',[],...
        'Style','Slider',...
        'Min',[1],...
        'Max',[col],...
        'Value',[2],...
        );

% uicontrols for each matrix to plot
for n = 1:nbr,
        nx[n] = uicontrol(...
                'Position',[],...
                'Style','text',...
                'String',inputname(varargin{n}),...
                );
        ex[n] = uicontrol(...
                'Position',[],...
                'Style','edit',...
                'String','b.',...
                );
end;

        
inputname(2)
varargin{1}
inputname(3)
varargin{2}

⌨️ 快捷键说明

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