view pointIndex.m @ 813:b374a8aa9246 feature/grids

Correct interface penalty strength in Elastic2dVariable
author Martin Almquist <malmquist@stanford.edu>
date Wed, 08 Aug 2018 14:42:24 -0700
parents bb079b39a7bb
children
line wrap: on
line source

% Get the index of the points p within the tall array of points ps
function [I, ok] = pointIndex(p, ps)
    [ok, I] = ismember(p,  ps, 'rows');
end