Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: function of common values to two tabes?
Replies: 10   Last Post: Nov 27, 2012 1:59 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 7
Registered: 11/19/12
Re: function of common values to two tabes?
Posted: Nov 19, 2012 6:50 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"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.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.