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

    function out=subsasgn(rl,s,in)
%ROLLER/SUBSASGN
%   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:InvalidObject1'))
end

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


out=set(rl,s.subs,in);