www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgsurfview/@dataviewer/optionsAllowed.m

    function out=optionsAllowed(obj,plottype)
%OPTIONSALLOWED Indicates whether any options are available for the specified plot type.
%
% obj.optionsAllowed(plottype)
%
% The parameter is the name or index of the plot type in the matrix
% in dataviewer.m

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


if ischar(plottype)
    plottype = getPlotTypeIndex(plottype);
end
    
item = obj.plottypes(plottype).optionsobj;
if isempty(item)
    out = 'off';
else
    out = 'on';
end