help-octave
[Top][All Lists]
Advanced

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

Re: Possible to specify range on LHS in DLD?


From: Paul Thomas
Subject: Re: Possible to specify range on LHS in DLD?
Date: Fri, 16 Jul 2004 23:08:39 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225

Thank Michael Creel!

Glenn Golden wrote:

"Paul Thomas" writes:
Various functions do exist that allow you to do such things.  Visit:
http://pareto.uab.es/mcreel/OctaveClassReference/html/classMatrix.html and
see functions insert, append, row and column.  However, they themselves do
nothing more than element by element transfers and take exactly the same
amount of time as you would by doing it explicitly.  You pays your penny and
takes your choice.


Paul,

Thanks. The URL alone is worth lots more than a penny. : ) Very useful
reference, lots of stuff there I didn't even know existed.

Thanks for the quick response.

Glenn




----- Original Message ----- From: "Glenn Golden" <address@hidden>
To: <address@hidden>
Sent: Friday, July 16, 2004 8:25 PM
Subject: Possible to specify range on LHS in DLD?


DLDoids,

In a DLD function, is it possible to assign to a slice of a Matrix
or Vector object in one gulp, or do you have to iterate over the
desired elements one at a time?  I looked in ...src/DLD_FUNCTIONS,
but couldn't quickly spot an example.

Conceptually, I want to do the DLDland equivalent of something like

v = zeros(1,10);
v(k:l) = whatever;


Thanks,

Glenn Golden



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------






-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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