help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: constructing a matrix from a vector


From: Alasdair McAndrew
Subject: Re: constructing a matrix from a vector
Date: Wed, 19 Oct 2011 17:07:45 +1100

As well as repmat, you could use

ones(6,1)*[1 2 3]

-Alasdair


On Wed, Oct 19, 2011 at 3:02 PM, ishi soichi <address@hidden> wrote:
hi. I have a question about matrices.

say, we have a vector,

(1 2 3)

Can we construct a matrix like


1 2 3
1 2 3
1 2 3
1 2 3

?

certainly it's possible if I use normal loop algorithms. But I rather use Octave capability to manipulate matrices.

soichi

_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave




--
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew

reply via email to

[Prev in Thread] Current Thread [Next in Thread]