help-octave
[Top][All Lists]
Advanced

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

AGAIN A SIMPLY QUESTION


From: Oscar Bayona Candel
Subject: AGAIN A SIMPLY QUESTION
Date: Tue, 11 Sep 2007 19:13:17 +0200


Hi,
 
There is any function that if I want to replace a row vector in all rows of a matrix could do it?
 
In example:
 
A=[ 2.5 3.6 2 3 9] %this is an 1x5 vector
 
B=[1 1 1 1 1
1 1 1 1 1
1 1 1 1 1] % B is an 3x5 matrix
 
I number of colums of A and B always coincide how can I replace all rows of B for A so that
 
I obteine this result?
 
(this should be the result)
 
B=[2.5 3.6 2 3 9
2.5 3.6 2 3 9
2.5 3.6 2 3 9]
 
 
As always, thanks in advance, and best regards. Sorry again if I express incorrectly.
 


Llama a tus amigos de PC a PC: ¡Es GRATIS! Pruébalo

reply via email to

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