view pointIndex.m @ 859:4c7532db42cd feature/poroelastic

Add method getTimeStepQuadrature to RungeKuttaDiscreteData
author Martin Almquist <malmquist@stanford.edu>
date Wed, 03 Oct 2018 10:43: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