view pointIndex.m @ 765:bb079b39a7bb feature/grids

Add function for findind indecies of points in a list of points
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 21 Jun 2018 16:54:27 +0200
parents
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