help-octave
[Top][All Lists]
Advanced

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

Re: creation of (1,q,q^2,...,q^n) vector?


From: Lute Kamstra
Subject: Re: creation of (1,q,q^2,...,q^n) vector?
Date: Tue, 04 Nov 2003 12:10:04 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Christoph Dalitz <address@hidden> writes:

> does someone know of an efficient way (i.e. without a loop) to
> create the vector (1,q^2,...,q^n) in Octave?

q.^(1:n)


  Lute.



-------------------------------------------------------------
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]