www.gusucode.com > robotsimulink 工具箱 matlab源码程序 > robotsimulink/robotslalgs/getBlockHelpMapNameAndPath.m
function [mapName, relativePathToMapFile, found] = getBlockHelpMapNameAndPath(block_type) %getBlockHelpMapNameAndPath Returns the mapName and the relative path to the maps file for this block_type % Internal note: % First column is the "System object name", corresponding to the block, % Second column is the anchor ID, the doc uses for the block. % For core blocks, the first column is the 'BlockType'. % Copyright 2016 The MathWorks, Inc. blks = {... 'robotics.slalgs.internal.PurePursuit' 'rstPurePursuitBlock'; ... 'robotics.VectorFieldHistogram' 'rstVectorFieldHistogramBlock';... }; relativePathToMapFile = '/robotics/helptargets.map'; found = false; % See whether or not the block is a Robotics System Toolbox or not i = strcmp(block_type, blks(:,1)); if ~any(i) mapName = 'User Defined'; else found = true; mapName = blks(i,2); end