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

📄 subsref.m

📁 一个关于adaboost算法的matlab程序
💻 M
字号:
function b = subsref(a,s)%    B = SUBSREF(A,S) is called for the syntax A(I), A{I}, or A.I%    when A is an object.  S is a structure array with the fields:%        type -- string containing '()', '{}', or '.' specifying the%                subscript type.%        subs -- Cell array or string containing the actual subscripts.%% File:        @data/subsref.m%% Author:      Gunnar R"atsch, Alex Smola% Created:     02/11/98% Updated:     02/21/98% %   G. Raetsch 10.12.99%   Copyright (c) 1998,1999  GMD Berlin - All rights reserved%   THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE of GMD FIRST Berlin%   The copyright notice above does not evidence any%   actual or intended publication of this work.%   Please see COPYRIGHT.txt for details.for i=1:length(s)  if equal(s(i).type, '.')    Q=[Q, '.', s(i).subs];  elseif equal(s(i).type, '()')    tmp = length(s(i).subs);    Q=[Q, '('];    for j=1:(tmp-1)      Q=[Q, 's(', num2str(i), ').subs{', num2str(j), '}, '];    end;    Q=[Q, 's(', num2str(i), ').subs{', num2str(tmp), '})'];  elseif equal(s(i).type, '{}')    tmp = length(s(i).subs);    Q=[Q, '{'];    for j=1:(tmp-1)      Q=[Q, 's(', num2str(i), ').subs{', num2str(j), '}, '];    end;    Q=[Q, 's(', num2str(i), ').subs{', num2str(tmp), '}}'];  end ;end;b=eval(Q) ;

⌨️ 快捷键说明

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