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: expanding matrix while copying elements
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Bruce Bowler

Posts: 303
Registered: 12/7/04
expanding matrix while copying elements
Posted: Mar 19, 2013 11:40 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Howdy. I know I can do this with a couple of loops, but that just feels

I have a MxN matrix that I want to turn into a 12Mx12N matrix, filling in
the intermediate elements. Here's a brief example - Suppose the initial
matrix is 2x3 and I want to end up with 4x6

This 1 2 3 should end up as this 1 1 2 2 3 3
4 5 6 1 1 2 2 3 3
4 4 5 5 6 6
4 4 5 5 6 6


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.