felix
Posts:
7
Registered:
11/19/12


Re: function of common values to two tabes?
Posted:
Nov 19, 2012 6:50 AM


"Nasser M. Abbasi" <nma@12000.org> wrote in message <k8d60n$dcb$1@speranza.aioe.org>... > On 11/19/2012 5:35 AM, felix wrote: > > >> > >> But if you mean a matrix, then you can use (from help): > >> > >>  > >> C = intersect(A,B) for vectors A and B, returns the values common to > >> the two vectors with no repetitions. > >>  > > > >> sorry about my wrong expression, when i say table i mean matrix. > >i have two matricies A and B and i need to find and output a vector > >with numbers that are the same at both matricies. > > > Yes, the command intersect(A,B) works with matrices also. Try it. > See help how to use it.
I am trying to use intersect(A,B) but i am taking this error: Error using ==> intersect at 55 A and B must be vectors, or 'rows' must be specified.

