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: Problem using horzcat with index vectors in a for loop
Replies: 7   Last Post: Jan 22, 2013 6:45 AM

Advanced Search

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

Posts: 3
Registered: 8/16/12
Re: Problem using horzcat with index vectors in a for loop
Posted: Jan 22, 2013 5:18 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Does the following line execute the correct task?
Independently of the dimension of A and B (only number of columns should be the same).

desired=[A(ia,:),B(ib,:)];

But I don't know why doubling the columns, because per definition
A(ia,:) is identically B(ib,:) when using intersect.

Regards
Norbert



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

[Privacy Policy] [Terms of Use]

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