comparison 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
comparison
equal deleted inserted replaced
764:e05465aa2e25 765:bb079b39a7bb
1 % Get the index of the points p within the tall array of points ps
2 function [I, ok] = pointIndex(p, ps)
3 [ok, I] = ismember(p, ps, 'rows');
4 end