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: Sugahara.Kengo
Subject: RE: constructing a matrix from a vector
Date: Wed, 19 Oct 2011 13:08:02 +0900

what about repmat?
 
x = [1,2,3];
 
y = repmat(x,10,1);
 

From: address@hidden [mailto:address@hidden On Behalf Of ishi soichi
Sent: Wednesday, October 19, 2011 1:03 PM
To: address@hidden
Subject: constructing a matrix from a vector

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

reply via email to

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