view pointIndex.m @ 951:a6c5e73ff44e

Better errors in Map()
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 07 Dec 2018 16:10:58 +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