www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgcalinput/getinputfunctions.m

    function [fcns, names, fileflags, filters] = getinputfunctions(obj)
%GETINPUTFUNCTIONS  Find calibration import functions.
%
%  [FCNS,NAMES,FILEFLAGS, FILEFILTERS] = GETINPUTFUNCTIONS(OBJ) finds
%  calibration import functions.  The function names FCNS, descriptions
%  NAMES are returned, as is a flag FILEFLAGS that indicates the number of
%  calibration data files required for that importer.

%  Copyright 2000-2011 The MathWorks, Inc.


fcns = methods(obj);
fcns = setdiff(fcns,pNotImportFunctions,'legacy');
if nargout>1
    names = cell(size(fcns));
    fileflags = false(size(fcns));
    filters = cell(size(fcns));
    for n=1:length(fcns)
        [filters{n}, names{n}, fileflags(n)] = feval(fcns{n}, obj, 'getname');
    end
end