www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@calibrationdata/@calibration/getMap.m
function map = getMap(obj, identifier) %GETMAP Get map from calibration. % % MAP = GETMAP(CAL,IDENTIFIER) gets the map with identifier IDENTIFIER % from the calibration CAL. % % See also GETAXIS, GETVALUE, GETCURVE, GETITEM. % Copyright 2000-2005 The MathWorks, Inc. if ischar(identifier) identifier = {identifier}; elseif ~iscell(identifier) error(message('mbc:calibrationdata:calibration:InvalidArgument')) end [match, position] = ismember(identifier, obj.getMapIdentifiers); if any(~match) error(message('mbc:calibrationdata:calibration:ObjectNotFound3')) else map = duplicate(obj.Maps(position)); end