view pointIndex.m @ 953:2c5b9cfc3f25 feature/utux2D

Merge default into feature/utux2D
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 10 Dec 2018 09:28:40 +0100
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