view pointIndex.m @ 902:306f5b3cd7bc

Merged in bcSetupExperiment (pull request #10) Improved bulk boundary condition handling Approved-by: Martin Almquist <malmquist@stanford.edu>
author Jonatan Werpers <jonatan.werpers@it.uu.se>
date Sat, 24 Nov 2018 14:55:48 +0000
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