www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@roller/subsref.m

    function out=subsref(rl,s)
% ROLLER/SUBSREF
%   Provides dot referencing interface for roller object.  

%  Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc.




% Bail if we've not been given a roller object
if ~isa(rl,'roller')
   error(message('mbc:roller:InvalidObject2'))
end

if length(s)>1 | ~strcmp(s(1).type,'.')
   error(message('mbc:roller:InvalidIndex'));
end


out=get(rl,s.subs);