[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Possible to specify range on LHS in DLD?
From: |
Glenn Golden |
Subject: |
Possible to specify range on LHS in DLD? |
Date: |
Fri, 16 Jul 2004 12:25:44 -0600 |
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
-------------------------------------------------------------
- Possible to specify range on LHS in DLD?,
Glenn Golden <=