The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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" <> wrote in message <k8d60n$dcb$>...
> 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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.