source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/intersect_sorted.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 383 bytes
Line 
1function 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
10c = a(ismember_sorted(a,b));
Note: See TracBrowser for help on using the repository browser.