www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@des_constraints/findpoints.m

    function idx = findpoints(c,inds)
%FINDPOINTS  Find the given points in the constraints list.
%
%  I=FINDPOINTS(C,INDS) searches the list of constrained points in C for
%  the indices INDS and returns their positions in I.

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


[unused, idx] = ismember(inds, c.InteriorPoints);
idx(idx==0) = NaN;