source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/intersect_sorted.m
@
177
Last change on this file since 177 was 37, checked in by , 15 years ago | |
---|---|
File size: 383 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function c = intersect_sorted(a,b) |
2 | %INTERSECT_SORTED Set intersection between sorted sets. | |
3 | % INTERSECT_SORTED(A,B) when A and B are vectors returns the values common | |
4 | % to both A and B. A and B must be sorted and unique, and the result will be | |
5 | % sorted and unique. | |
6 | ||
7 | % Written by Tom Minka | |
8 | % (c) Microsoft Corporation. All rights reserved. | |
9 | ||
10 | c = a(ismember_sorted(a,b)); |
Note: See TracBrowser
for help on using the repository browser.