view pointIndex.m @ 1056:b4fa176b4287 feature/poroelastic

Elastic2dVariable: boundary condition type can now be a string, normal or tangential, as well as component number.
author Martin Almquist <malmquist@stanford.edu>
date Fri, 25 Jan 2019 15:15:44 -0800
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