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: Combine two matrices
Replies: 3   Last Post: Feb 3, 2014 3:04 PM

Advanced Search

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

Posts: 164
Registered: 4/4/09
Combine two matrices
Posted: Feb 3, 2014 4:45 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear all,
how (for various sizes of A5 and A6) to make matrix A6 in which all rows with zeros are substituted by rows from A5. First and second of A5 are the second and third of A6, Third and fourth of A5 are fifth and sixth of A6, Fifth and sixth of A5 are eighth and ninth of A6.
Thanks in advance!


A5 =
-1 0 0 0 0 0 0 0 0 0 0 0
0 -1 0 0 0 0 0 0 0 0 0 0
0 0 -1 0 0 0 0 0 0 0 0 0
0 0 0 -1 0 0 0 0 0 0 0 0
0 0 0 0 -1 0 0 0 0 0 0 0
0 0 0 0 0 -1 0 0 0 0 0 0
>> A6
A6 =
-1 -1 0 0 0 0 -1 -1 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 -1 -1 0 0 0 0 -1 -1 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 -1 -1 0 0 0 0 -1 -1
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0



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.