www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mvgraph1d/subsref.m
function out=subsref(gr,s) %GRAPH1D/SUBSREF % Provides dot referencing interface for graph1d object. % For more information on the properties available, see % GRAPH1D/GET. % Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc. % Date: 16/9/1999 % Bail if we've not been given a graph1d object if ~isa(gr,'mvgraph1d') error(message('mbc:mvgraph1d:InvalidObject3')) end if length(s)>1 | ~strcmp(s(1).type,'.') error(message('mbc:mvgraph1d:InvalidIndex')); end out=get(gr,s.subs);