Mercurial > repos > public > sbplib
annotate pointIndex.m @ 892:b7ec26da3d77
Handle default arguments better in dealStruct()
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 22 Nov 2018 07:26:45 +0100 |
parents | bb079b39a7bb |
children |
rev | line source |
---|---|
765
bb079b39a7bb
Add function for findind indecies of points in a list of points
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
1 % Get the index of the points p within the tall array of points ps |
bb079b39a7bb
Add function for findind indecies of points in a list of points
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
2 function [I, ok] = pointIndex(p, ps) |
bb079b39a7bb
Add function for findind indecies of points in a list of points
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
3 [ok, I] = ismember(p, ps, 'rows'); |
bb079b39a7bb
Add function for findind indecies of points in a list of points
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
4 end |