help-octave
[Top][All Lists]
Advanced

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

Re: AGAIN A SIMPLY QUESTION


From: Rupert Swarbrick
Subject: Re: AGAIN A SIMPLY QUESTION
Date: Tue, 11 Sep 2007 18:23:11 +0100

> Hi,
>  
> There is any function that if I want to replace a row vector in all
> rows of a matrix could do it? 

Hi,

I think you want repmat. I'm not sure whether there is a more efficient
way in terms of reallocating memory, as this just overwrites the
existing matrix. (Could someone quickly explain the way memory is
allocated in octave for me?!)

But something like

B = repmat( A, 3, 1 )

would do what you want, I think.

Rupert

Attachment: signature.asc
Description: PGP signature


reply via email to

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