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: How can you enlarge a matrix by adding zeroes
Replies: 20   Last Post: Jun 19, 2012 12:22 PM

Advanced Search

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

Posts: 214
Registered: 12/13/04
Re: How can you enlarge a matrix by adding zeroes
Posted: Jun 15, 2012 11:53 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On Jun 15, 5:43 pm, "Ellen " <> wrote:
> Okay. Clearly that doesn't make sense worded like that. Let's say I have a matrix
> [1;2;3;4;5]
> But I want to to have dimensions 1x10. How could I fill the matrix up so that it is now
> [1;2;3;4;5;0;0;0;0;0]
> if I didn't know that the matrix originally had a dimension of 1x5. I only knew it had a dimension somewhere between 1x1 and 1x10.
> If that is even possible. Or if that even makes sense. Thanks!

Incorrect notation: those matrices are column vectors, not row

Therefore the dimensions are 10x1 and 5x1. Use dpb's syntax: [1:5]',

Hope this helps.


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.