Oh, good news everybody, then! The "only" problem with this function is that it only works for integers, if it were to replace setdiff, it should be adapted to work with general sets.
Cheers. On Tue, May 5, 2009 at 7:31 AM, Jaroslav Hajek wrote: > On Tue, May 5, 2009 at 2:04 AM, Francisco J. Martínez Serrano > wrote: >> Hi there, >> >> I needed a version of setdiff C=A - B that would return the indices I >> in A such that C=A(I), so I wrote one. I think it would be useful to >> have this feature in octave's setdiff. > > Octave 3.1.55+: > > octave:1> [c,i] = setdiff([1 3 4 5 6 7 9],[3 6 7]) > c = > > 1 4 5 9 > > i = > > 1 3 4 7 > > regards > > -- > RNDr. Jaroslav Hajek > computing expert & GNU Octave developer > Aeronautical Research and Test Institute (VZLU) > Prague, Czech Republic > url: www.highegg.matfyz.cz > ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
